| 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;
|
|
|