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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp

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/image-decoders/webp/WEBPImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
index bbfec458fc8a48a2ca2e4ebb2493f0c1a93202d0..c9045baf3561de6a1fa4434701bbc638bda8cf33 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
@@ -117,13 +117,9 @@ void alphaBlendNonPremultiplied(blink::ImageFrame& src,
namespace blink {
WEBPImageDecoder::WEBPImageDecoder(AlphaOption alphaOption,
- ColorSpaceOption colorOptions,
- sk_sp<SkColorSpace> targetColorSpace,
+ const ColorBehavior& colorBehavior,
size_t maxDecodedBytes)
- : ImageDecoder(alphaOption,
- colorOptions,
- std::move(targetColorSpace),
- maxDecodedBytes),
+ : ImageDecoder(alphaOption, colorBehavior, maxDecodedBytes),
m_decoder(0),
m_formatFlags(0),
m_frameBackgroundHasAlpha(false),

Powered by Google App Engine
This is Rietveld 408576698