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

Unified Diff: third_party/WebKit/Source/web/WebImageDecoder.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/web/WebImageDecoder.cpp
diff --git a/third_party/WebKit/Source/web/WebImageDecoder.cpp b/third_party/WebKit/Source/web/WebImageDecoder.cpp
index ee7877639da645ac72e38fbe84fd04f59138e13c..0c8428fed0faa9edba9da0d76749965a94f673b1 100644
--- a/third_party/WebKit/Source/web/WebImageDecoder.cpp
+++ b/third_party/WebKit/Source/web/WebImageDecoder.cpp
@@ -51,13 +51,13 @@ void WebImageDecoder::init(Type type) {
switch (type) {
case TypeBMP:
m_private = new BMPImageDecoder(
- ImageDecoder::AlphaPremultiplied, ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::targetColorSpaceForTesting(), maxDecodedBytes);
+ ImageDecoder::AlphaPremultiplied,
+ ColorBehavior::transformToTargetForTesting(), maxDecodedBytes);
break;
case TypeICO:
m_private = new ICOImageDecoder(
- ImageDecoder::AlphaPremultiplied, ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::targetColorSpaceForTesting(), maxDecodedBytes);
+ ImageDecoder::AlphaPremultiplied,
+ ColorBehavior::transformToTargetForTesting(), maxDecodedBytes);
break;
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698