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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.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/image-decoders/webp/WEBPImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
index d2d95ab96583455e40a6548e9e1d9838757da68a..ee18a9083b66837e4199ba9dcb9eb7ac744d5e27 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
@@ -44,6 +44,7 @@ public:
// ImageDecoder:
String filenameExtension() const override { return "webp"; }
bool hasColorProfile() const override { return m_hasColorProfile; }
+ PassRefPtr<ColorSpaceProfile> colorProfile() const override { return m_colorProfile; }
void onSetData(SharedBuffer* data) override;
int repetitionCount() const override;
bool frameIsCompleteAtIndex(size_t) const override;
@@ -64,10 +65,11 @@ private:
int m_formatFlags;
bool m_frameBackgroundHasAlpha;
bool m_hasColorProfile;
+ RefPtr<ColorSpaceProfile> m_colorProfile;
#if USE(QCMSLIB)
qcms_transform* colorTransform() const { return m_transform; }
- bool createColorTransform(const char* data, size_t);
+ PassRefPtr<ColorSpaceProfile> createColorTransform(const char* data, size_t);
void clearColorTransform();
void readColorProfile();

Powered by Google App Engine
This is Rietveld 408576698