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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageFrame.h

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: Created 4 years, 5 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/image-decoders/ImageFrame.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
index 7a51c75e23dfa7f6aa20ba419fc6ded626c89d71..fe70dedc4e3b26b862176bcd71e41d8c4b45df82 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
@@ -93,6 +93,9 @@ public:
// the other. Returns whether the copy succeeded.
bool copyBitmapData(const ImageFrame&);
+ // Takes over other's frame pixel data. Other becomes empty after this call.
Peter Kasting 2016/07/19 03:04:17 Nit: To match declaration above as closely as poss
aleksandar.stojiljkovic 2016/07/19 11:10:40 Done.
+ void takeBitmapData(ImageFrame& other);
+
// Copies the pixel data at [(startX, startY), (endX, startY)) to the
// same X-coordinates on each subsequent row up to but not including
// endY.

Powered by Google App Engine
This is Rietveld 408576698