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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.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/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 da11d0720ff8de9aae9f267fca6082060123ee4c..a2233b50167d9ff573b96168c946050e68e63d50 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp
@@ -46,10 +46,10 @@ namespace {
const char layoutTestResourcesDir[] = "LayoutTests/images/resources";
std::unique_ptr<ImageDecoder> createDecoder() {
- return wrapUnique(new GIFImageDecoder(
- ImageDecoder::AlphaNotPremultiplied, ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::targetColorSpaceForTesting(),
- ImageDecoder::noDecodedImageByteLimit));
+ return wrapUnique(
+ new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
+ ColorBehavior::transformToTargetForTesting(),
+ ImageDecoder::noDecodedImageByteLimit));
}
void testRepetitionCount(const char* dir,
@@ -367,15 +367,14 @@ TEST(GIFImageDecoderTest, bitmapAlphaType) {
RefPtr<SharedBuffer> partialData =
SharedBuffer::create(fullData->data(), kTruncateSize);
- std::unique_ptr<ImageDecoder> premulDecoder = wrapUnique(new GIFImageDecoder(
- ImageDecoder::AlphaPremultiplied, ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::targetColorSpaceForTesting(),
- ImageDecoder::noDecodedImageByteLimit));
- std::unique_ptr<ImageDecoder> unpremulDecoder =
- wrapUnique(new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
- ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::targetColorSpaceForTesting(),
- ImageDecoder::noDecodedImageByteLimit));
+ std::unique_ptr<ImageDecoder> premulDecoder = wrapUnique(
+ new GIFImageDecoder(ImageDecoder::AlphaPremultiplied,
+ ColorBehavior::transformToTargetForTesting(),
+ ImageDecoder::noDecodedImageByteLimit));
+ std::unique_ptr<ImageDecoder> unpremulDecoder = wrapUnique(
+ new GIFImageDecoder(ImageDecoder::AlphaNotPremultiplied,
+ ColorBehavior::transformToTargetForTesting(),
+ ImageDecoder::noDecodedImageByteLimit));
// Partially decoded frame => the frame alpha type is unknown and should
// reflect the requested format.

Powered by Google App Engine
This is Rietveld 408576698