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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.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/jpeg/JPEGImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index ef2397f1a96d920cbd388aeb7c6f84607541915e..e49a211d0fa5d792fe612c040eb7fb8c87456ac1 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -710,13 +710,9 @@ void term_source(j_decompress_ptr jd) {
}
JPEGImageDecoder::JPEGImageDecoder(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) {}
JPEGImageDecoder::~JPEGImageDecoder() {}

Powered by Google App Engine
This is Rietveld 408576698