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

Unified Diff: third_party/WebKit/Source/platform/testing/ImageDecodeBench.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/testing/ImageDecodeBench.cpp
diff --git a/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp b/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp
index 3e4dc8e887d216815079bae80bb15a8d130a83a7..7c38c7d2b308ae092511be2b006acdeb6b6f66da 100644
--- a/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp
+++ b/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp
@@ -260,9 +260,8 @@ bool decodeImageData(SharedBuffer* data,
size_t packetSize) {
std::unique_ptr<ImageDecoder> decoder = ImageDecoder::create(
data, true, ImageDecoder::AlphaPremultiplied,
- colorCorrection ? ImageDecoder::ColorSpaceTransformed
- : ImageDecoder::ColorSpaceIgnored,
- colorCorrection ? ImageDecoder::targetColorSpaceForTesting() : nullptr);
+ colorCorrection ? ColorBehavior::transformToTargetForTesting()
+ : ColorBehavior::ignore());
if (!packetSize) {
bool allDataReceived = true;
decoder->setData(data, allDataReceived);
@@ -313,7 +312,7 @@ int main(int argc, char* argv[]) {
applyColorCorrection = (--argc, ++argv, true);
WebVector<char> profile;
getScreenColorProfile(&profile); // Returns a color spin color profile.
- ImageDecoder::setGlobalTargetColorProfile(profile);
+ ColorBehavior::setGlobalTargetColorProfile(profile);
}
if (argc < 2) {

Powered by Google App Engine
This is Rietveld 408576698