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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.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/image-decoders/gif/GIFImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp
index 753bb51acc39a266ad01029c716f3d44b597106b..dce145b56b81bf437208a4cb778ca59123e5135c 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp
@@ -47,10 +47,9 @@ const char decodersTestingDir[] = "Source/platform/image-decoders/testing";
const char layoutTestResourcesDir[] = "LayoutTests/fast/images/resources";
std::unique_ptr<ImageDecoder> createDecoder() {
- return wrapUnique(
- new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
- ImageDecoder::GammaAndColorProfileApplied,
- ImageDecoder::noDecodedImageByteLimit));
+ return wrapUnique(new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
+ ImageDecoder::ColorSpaceApplied,
+ ImageDecoder::noDecodedImageByteLimit));
}
void testRandomFrameDecode(const char* dir, const char* gifFile) {
@@ -543,13 +542,12 @@ TEST(GIFImageDecoderTest, bitmapAlphaType) {
RefPtr<SharedBuffer> partialData =
SharedBuffer::create(fullData->data(), kTruncateSize);
- std::unique_ptr<ImageDecoder> premulDecoder =
- wrapUnique(new GIFImageDecoder(ImageDecoder::AlphaPremultiplied,
- ImageDecoder::GammaAndColorProfileApplied,
- ImageDecoder::noDecodedImageByteLimit));
+ std::unique_ptr<ImageDecoder> premulDecoder = wrapUnique(new GIFImageDecoder(
+ ImageDecoder::AlphaPremultiplied, ImageDecoder::ColorSpaceApplied,
+ ImageDecoder::noDecodedImageByteLimit));
std::unique_ptr<ImageDecoder> unpremulDecoder =
wrapUnique(new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
- ImageDecoder::GammaAndColorProfileApplied,
+ ImageDecoder::ColorSpaceApplied,
ImageDecoder::noDecodedImageByteLimit));
// Partially decoded frame => the frame alpha type is unknown and should

Powered by Google App Engine
This is Rietveld 408576698