Index: ui/gfx/image/image_util.cc |
diff --git a/ui/gfx/image/image_util.cc b/ui/gfx/image/image_util.cc |
index 3fca705a8256bf341070991f748e3805b53f1c80..16387149d142c76d4d91126c314a526b8c3c8249 100644 |
--- a/ui/gfx/image/image_util.cc |
+++ b/ui/gfx/image/image_util.cc |
@@ -62,8 +62,6 @@ bool JPEG1xEncodedDataFromSkiaRepresentation(const Image& image, |
return false; |
const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); |
- SkAutoLockPixels bitmap_lock(bitmap); |
- |
if (!bitmap.readyToDraw()) |
return false; |
@@ -85,7 +83,6 @@ void GetVisibleMargins(const ImageSkia& image, int* left, int* right) { |
if (bitmap.drawsNothing() || bitmap.isOpaque()) |
return; |
- SkAutoLockPixels lock(bitmap); |
int x = 0; |
for (; x < bitmap.width(); ++x) { |
if (ColumnHasVisiblePixels(bitmap, x)) { |