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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp

Issue 2523943002: Explicitly specify target color space to ImageDecoder at creation (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/gif/GIFImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
index ca3575a40bbdc665eea76f231fcab10379125892..b09870ab4e6a758fb26d47d500772c5dc46cdd33 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -34,8 +34,12 @@ namespace blink {
GIFImageDecoder::GIFImageDecoder(AlphaOption alphaOption,
ColorSpaceOption colorOptions,
+ sk_sp<SkColorSpace> targetColorSpace,
size_t maxDecodedBytes)
- : ImageDecoder(alphaOption, colorOptions, maxDecodedBytes),
+ : ImageDecoder(alphaOption,
+ colorOptions,
+ std::move(targetColorSpace),
+ maxDecodedBytes),
m_repetitionCount(cAnimationLoopOnce) {}
GIFImageDecoder::~GIFImageDecoder() {}

Powered by Google App Engine
This is Rietveld 408576698