SkBitmap and SkPixelRef no longer need lock/unlock
https://codereview.chromium.org/2823003002
This commit is contained in:
parent
ea4a36039a
commit
ea8e113b19
5 changed files with 0 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue