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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.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/jpeg/JPEGImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
index a940e72ae94dcfd4a9052a1f4397931c84d7308c..6454b041e081f9a34934c65f5093c222596d5c1f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp
@@ -47,9 +47,9 @@ static const size_t LargeEnoughSize = 1000 * 1000;
namespace {
std::unique_ptr<ImageDecoder> createDecoder(size_t maxDecodedBytes) {
- return wrapUnique(new JPEGImageDecoder(ImageDecoder::AlphaNotPremultiplied,
- ImageDecoder::ColorSpaceApplied,
- maxDecodedBytes));
+ return wrapUnique(new JPEGImageDecoder(
+ ImageDecoder::AlphaNotPremultiplied, ImageDecoder::ColorSpaceTransformed,
+ ImageDecoder::targetColorSpaceForTesting(), maxDecodedBytes));
}
std::unique_ptr<ImageDecoder> createDecoder() {

Powered by Google App Engine
This is Rietveld 408576698