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

Unified Diff: src/codec/SkCodecAnimation.h

Issue 2045293002: Add support for multiple frames in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Return metadata in a vector Created 4 years, 3 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: src/codec/SkCodecAnimation.h
diff --git a/src/codec/SkCodecAnimation.h b/src/codec/SkCodecAnimation.h
index 2ce5178c6a8e4025d6539c539edf07cc9dfc5c87..0cd9f9e24a870dff5377e9f571fb9cd9e62a9adb 100644
--- a/src/codec/SkCodecAnimation.h
+++ b/src/codec/SkCodecAnimation.h
@@ -8,6 +8,7 @@
#ifndef SkCodecAnimation_DEFINED
#define SkCodecAnimation_DEFINED
+#include "SkCodec.h"
#include "SkRect.h"
class SkCodecAnimation {
@@ -43,18 +44,11 @@ public:
RestorePrevious_DisposalMethod = 3,
};
- struct FrameInfo {
+ struct FrameInfo : public SkCodec::FrameInfo {
DisposalMethod fDisposalMethod;
- // The frame that this frame is drawn on top of, or
- // SkCodec::kIndependentFrame.
- size_t fRequiredFrame;
-
// The subset of the bounds that this frame describes.
SkIRect fFrameRect;
-
- // How many 1/100 seconds to show this frame.
- size_t fDuration;
};
private:
SkCodecAnimation();
« include/codec/SkCodec.h ('K') | « include/codec/SkCodec.h ('k') | src/codec/SkGifCodec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698