| Index: third_party/WebKit/Source/platform/graphics/ImageSource.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.h b/third_party/WebKit/Source/platform/graphics/ImageSource.h
|
| index f4b01c48961037830038e9360e5b5acd1ae62e5d..211388def24711cc5463b046c49c67b0f8da330e 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageSource.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageSource.h
|
| @@ -27,6 +27,7 @@
|
| #define ImageSource_h
|
|
|
| #include "platform/PlatformExport.h"
|
| +#include "platform/graphics/ColorBehavior.h"
|
| #include "platform/graphics/DeferredImageDecoder.h"
|
| #include "platform/graphics/ImageOrientation.h"
|
| #include "third_party/skia/include/core/SkRefCnt.h"
|
| @@ -90,7 +91,7 @@ class PLATFORM_EXPORT ImageSource final {
|
| size_t frameCount() const;
|
|
|
| // Attempts to create the requested frame.
|
| - sk_sp<SkImage> createFrameAtIndex(size_t);
|
| + sk_sp<SkImage> createFrameAtIndex(size_t, const ColorBehavior&);
|
|
|
| float frameDurationAtIndex(size_t) const;
|
| bool frameHasAlphaAtIndex(
|
| @@ -105,6 +106,8 @@ class PLATFORM_EXPORT ImageSource final {
|
|
|
| private:
|
| std::unique_ptr<DeferredImageDecoder> m_decoder;
|
| + ColorBehavior m_decoderColorBehavior;
|
| + bool m_allDataReceived = false;
|
| };
|
|
|
| } // namespace blink
|
|
|