summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp b/chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
index 53c5cb0c534..5719923e76d 100644
--- a/chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
+++ b/chromium/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
@@ -138,6 +138,7 @@ bool ImageFrameGenerator::decodeAndScale(const SkImageInfo& info, size_t index,
ASSERT(bitmap.height() == scaledSize.height());
bool result = true;
+ SkAutoLockPixels bitmapLock(bitmap);
// Check to see if decoder has written directly to the memory provided
// by Skia. If not make a copy.
if (bitmap.getPixels() != pixels)