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

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

Issue 2787053004: Respect colorSpace in DecodingImageGenerator::onGetPixels() (Closed)
Patch Set: Response to comments Created 3 years, 8 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/ImageFrameGenerator.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
index 65ce816863b5a8a378fc0cbc7f67b3c2607e2d2d..ee3273202a587ef2f8ceb007301b75938d975f88 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
@@ -107,6 +107,10 @@ class PLATFORM_EXPORT ImageFrameGenerator final
// decodeToYUV().
bool getYUVComponentSizes(SegmentReader*, SkYUVSizeInfo*);
+ void setAlphaOption(ImageDecoder::AlphaOption option) {
+ m_alphaOption = option;
+ }
+
private:
ImageFrameGenerator(const SkISize& fullSize,
bool isMultiFrame,
@@ -145,6 +149,7 @@ class PLATFORM_EXPORT ImageFrameGenerator final
bool m_yuvDecodingFailed;
size_t m_frameCount;
Vector<bool> m_hasAlpha;
+ ImageDecoder::AlphaOption m_alphaOption;
std::unique_ptr<ImageDecoderFactory> m_imageDecoderFactory;

Powered by Google App Engine
This is Rietveld 408576698