Index: ui/base/x/x11_util.cc |
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc |
index dbb489fa84c800f3d2738e22514e997be6d4c666..037c236083b4bb906a515f8d7016d02209489598 100644 |
--- a/ui/base/x/x11_util.cc |
+++ b/ui/base/x/x11_util.cc |
@@ -319,12 +319,10 @@ XcursorImage* SkBitmapToXcursorImage(const SkBitmap* cursor_image, |
image->yhot = std::min(bitmap->height() - 1, hotspot_point.y()); |
if (bitmap->width() && bitmap->height()) { |
- bitmap->lockPixels(); |
// The |bitmap| contains ARGB image, so just copy it. |
memcpy(image->pixels, |
bitmap->getPixels(), |
bitmap->width() * bitmap->height() * 4); |
- bitmap->unlockPixels(); |
} |
return image; |