SkBitmap and SkPixelRef no longer need lock/unlock

https://codereview.chromium.org/2823003002
This commit is contained in:
Aleksei Kuzmin 2017-08-08 16:38:04 +03:00 committed by Cheng Zhao
parent ea4a36039a
commit ea8e113b19
5 changed files with 0 additions and 12 deletions

View file

@ -943,9 +943,6 @@ void CopyBitmapTo(
const SkBitmap& destination,
const SkBitmap& source,
const gfx::Rect& pos) {
SkAutoLockPixels source_pixels_lock(source);
SkAutoLockPixels destination_pixels_lock(destination);
char* src = static_cast<char*>(source.getPixels());
char* dest = static_cast<char*>(destination.getPixels());
int pixelsize = source.bytesPerPixel();