Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp

Issue 2155973002: Save a bitmap copy when advancing to dependent GIF and WebP animation frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finalizePixelsAndGetImage. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
index f7be7c977446fab5a519fe9d9d098f8febe88f3c..4df00c84729643ab04e839d55d2503ef520cbb3f 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
@@ -72,6 +72,8 @@ static bool decodeBitmap(const void* data, size_t length, SkBitmap* result)
if (!frame)
return true;
*result = frame->bitmap();
aleksandar.stojiljkovic 2016/09/21 20:56:57 Original code seems to be used only by devtools. A
aleksandar.stojiljkovic 2016/09/22 09:41:19 Done. Removed the drawback.
+ if (frame->getStatus() == ImageFrame::FrameComplete)
+ result->setImmutable();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698