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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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/DeferredImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
index 3338d4aa8ad1e5039efc98d14e95b2c39d9237ad..9643232b16f236ae1b7d77314ed899ca2c638332 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -40,6 +40,7 @@ class SkImage;
namespace blink {
+class ColorSpaceProfile;
class ImageFrameGenerator;
class SharedBuffer;
struct FrameData;
@@ -65,6 +66,7 @@ public:
bool isSizeAvailable();
bool hasColorProfile() const;
+ PassRefPtr<ColorSpaceProfile> colorProfile() const;
IntSize size() const;
IntSize frameSizeAtIndex(size_t index) const;
size_t frameCount();
@@ -96,9 +98,11 @@ private:
String m_filenameExtension;
IntSize m_size;
int m_repetitionCount;
- bool m_hasColorProfile;
bool m_canYUVDecode;
+ bool m_hasColorProfile;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
+
// Carries only frame state and other information. Does not carry bitmap.
Vector<FrameData> m_frameData;
RefPtr<ImageFrameGenerator> m_frameGenerator;

Powered by Google App Engine
This is Rietveld 408576698