Index: ui/views/controls/image_view.cc |
diff --git a/ui/views/controls/image_view.cc b/ui/views/controls/image_view.cc |
index 024155d68230176b4a5823dff7c5c10113f83525..c6a7145ec0592607038831f5b1bea3c14cb00587 100644 |
--- a/ui/views/controls/image_view.cc |
+++ b/ui/views/controls/image_view.cc |
@@ -20,9 +20,7 @@ namespace { |
// Returns the pixels for the bitmap in |image| at scale |image_scale|. |
void* GetBitmapPixels(const gfx::ImageSkia& img, float image_scale) { |
DCHECK_NE(0.0f, image_scale); |
- const SkBitmap& bitmap = img.GetRepresentation(image_scale).sk_bitmap(); |
- SkAutoLockPixels pixel_lock(bitmap); |
- return bitmap.getPixels(); |
+ return img.GetRepresentation(image_scale).sk_bitmap().getPixels(); |
} |
} // namespace |