Index: content/browser/renderer_host/backing_store_gtk.cc |
=================================================================== |
--- content/browser/renderer_host/backing_store_gtk.cc (revision 148546) |
+++ content/browser/renderer_host/backing_store_gtk.cc (working copy) |
@@ -563,6 +563,8 @@ |
// using. This code assumes a visual mode where a pixel is |
// represented using a 32-bit unsigned int, with a byte per component. |
SkBitmap bitmap = skia::GetTopDevice(*output)->accessBitmap(true); |
+ SkAutoLockPixels alp(bitmap); |
+ |
for (int y = 0; y < height; y++) { |
const uint32* src_row = reinterpret_cast<uint32*>( |
&image->data[image->bytes_per_line * y]); |