Index: ui/gfx/skia_util.cc |
diff --git a/ui/gfx/skia_util.cc b/ui/gfx/skia_util.cc |
index c23eab2b9ea829773d12052763cfa1f59774fb21..c0c4a5417206099b94ab51f1497656d5cd2b03ab 100644 |
--- a/ui/gfx/skia_util.cc |
+++ b/ui/gfx/skia_util.cc |
@@ -97,15 +97,11 @@ bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2) { |
size_t size1 = 0; |
size_t size2 = 0; |
- bitmap1.lockPixels(); |
addr1 = bitmap1.getAddr32(0, 0); |
size1 = bitmap1.getSize(); |
- bitmap1.unlockPixels(); |
- bitmap2.lockPixels(); |
addr2 = bitmap2.getAddr32(0, 0); |
size2 = bitmap2.getSize(); |
- bitmap2.unlockPixels(); |
return (size1 == size2) && (0 == memcmp(addr1, addr2, bitmap1.getSize())); |
} |