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

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

Issue 2523943002: Explicitly specify target color space to ImageDecoder at creation (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/ImageFrameGeneratorTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp b/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
index 9fd43e12a5a2b11f45938a6d3cb8aed0922e52d6..14b7534b172a767e061b1d5151c66353035ccdb4 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
@@ -59,7 +59,8 @@ class ImageFrameGeneratorTest : public ::testing::Test,
public:
void SetUp() override {
ImageDecodingStore::instance().setCacheLimitInBytes(1024 * 1024);
- m_generator = ImageFrameGenerator::create(fullSize(), nullptr, false);
+ m_generator = ImageFrameGenerator::create(
+ fullSize(), false, ImageDecoder::ColorSpaceIgnored, nullptr);
m_data = SharedBuffer::create();
m_segmentReader = SegmentReader::createFromSharedBuffer(m_data);
useMockImageDecoderFactory();
@@ -110,7 +111,8 @@ class ImageFrameGeneratorTest : public ::testing::Test,
m_frameCount = count;
if (count > 1) {
m_generator.clear();
- m_generator = ImageFrameGenerator::create(fullSize(), nullptr, true);
+ m_generator = ImageFrameGenerator::create(
+ fullSize(), true, ImageDecoder::ColorSpaceIgnored, nullptr);
useMockImageDecoderFactory();
}
}

Powered by Google App Engine
This is Rietveld 408576698