| 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) {
|
|
|