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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.h

Issue 2556973002: Allow specifying ColorBehavior to ImageSource (Closed)
Patch Set: Rebase Created 4 years 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/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

Powered by Google App Engine
This is Rietveld 408576698