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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)
Patch Set: Fix legacy ImageFrame Created 4 years, 2 months 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/graphics/DeferredImageDecoderTestWoPlatform.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp
index 60892fe5bc6591ebb3c2d7bfaa8e72722593a72b..5355271795c0112dd63bd0c7db5929076f4a4f2b 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp
@@ -40,7 +40,7 @@ static void mixImages(const char* fileName,
SharedBuffer::create(file->data(), bytesForFirstFrame);
std::unique_ptr<DeferredImageDecoder> decoder = DeferredImageDecoder::create(
partialFile, false, ImageDecoder::AlphaPremultiplied,
- ImageDecoder::GammaAndColorProfileIgnored);
+ ImageDecoder::ColorSpaceIgnored);
ASSERT_NE(decoder, nullptr);
sk_sp<SkImage> partialImage = decoder->createFrameAtIndex(0);
@@ -101,7 +101,7 @@ TEST(DeferredImageDecoderTestWoPlatform, fragmentedSignature) {
EXPECT_FALSE(ImageDecoder::hasSufficientDataToSniffImageType(*buffer));
EXPECT_EQ(nullptr, DeferredImageDecoder::create(
buffer, false, ImageDecoder::AlphaPremultiplied,
- ImageDecoder::GammaAndColorProfileIgnored));
+ ImageDecoder::ColorSpaceIgnored));
// Append the rest of the data. We should be able to sniff the signature
// now, even if segmented.
@@ -110,7 +110,7 @@ TEST(DeferredImageDecoderTestWoPlatform, fragmentedSignature) {
std::unique_ptr<DeferredImageDecoder> decoder =
DeferredImageDecoder::create(buffer, false,
ImageDecoder::AlphaPremultiplied,
- ImageDecoder::GammaAndColorProfileIgnored);
+ ImageDecoder::ColorSpaceIgnored);
ASSERT_NE(decoder, nullptr);
EXPECT_TRUE(String(testFiles[i]).endsWith(decoder->filenameExtension()));
}

Powered by Google App Engine
This is Rietveld 408576698