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

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

Issue 2556723003: Merge color options into ColorBehavior (Closed)
Patch Set: Feedback 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/ImageFrameGenerator.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
index 7945132710f3f75aefbf20b1f8111cecf508464b..65ce816863b5a8a378fc0cbc7f67b3c2607e2d2d 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
@@ -66,11 +66,9 @@ class PLATFORM_EXPORT ImageFrameGenerator final
static PassRefPtr<ImageFrameGenerator> create(
const SkISize& fullSize,
bool isMultiFrame,
- ImageDecoder::ColorSpaceOption decoderColorSpaceOption,
- sk_sp<SkColorSpace> decoderTargetColorSpace) {
+ const ColorBehavior& colorBehavior) {
return adoptRef(
- new ImageFrameGenerator(fullSize, isMultiFrame, decoderColorSpaceOption,
- std::move(decoderTargetColorSpace)));
+ new ImageFrameGenerator(fullSize, isMultiFrame, colorBehavior));
}
~ImageFrameGenerator();
@@ -112,8 +110,7 @@ class PLATFORM_EXPORT ImageFrameGenerator final
private:
ImageFrameGenerator(const SkISize& fullSize,
bool isMultiFrame,
- ImageDecoder::ColorSpaceOption decoderColorSpaceOption,
- sk_sp<SkColorSpace> decoderTargetColorSpace);
+ const ColorBehavior&);
friend class ImageFrameGeneratorTest;
friend class DeferredImageDecoderTest;
@@ -141,8 +138,7 @@ class PLATFORM_EXPORT ImageFrameGenerator final
const SkISize m_fullSize;
// Parameters used to create internal ImageDecoder objects.
- const ImageDecoder::ColorSpaceOption m_decoderColorSpaceOption;
- const sk_sp<SkColorSpace> m_decoderTargetColorSpace;
+ const ColorBehavior m_decoderColorBehavior;
const bool m_isMultiFrame;
bool m_decodeFailed;

Powered by Google App Engine
This is Rietveld 408576698