bool Lock(uint8_t** data, gfx::IntSize* size, int32_t* stride, gfx::SurfaceFormat* format) { bool success = mDT->LockBits(data, size, stride, format); if (success) mLockedBits = *data; return success; }
bool Lock(uint8_t** data, gfx::IntSize* size, int32_t* stride, gfx::SurfaceFormat* format) { if (!mDT->LockBits(data, size, stride, format)) return false; mLockedBits = *data; return true; }