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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.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/graphics/ImageFrameGeneratorTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp b/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
index 14b7534b172a767e061b1d5151c66353035ccdb4..761deaa9114e78bcc82cf6edbc220596c9637a43 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp
@@ -59,8 +59,8 @@ class ImageFrameGeneratorTest : public ::testing::Test,
public:
void SetUp() override {
ImageDecodingStore::instance().setCacheLimitInBytes(1024 * 1024);
- m_generator = ImageFrameGenerator::create(
- fullSize(), false, ImageDecoder::ColorSpaceIgnored, nullptr);
+ m_generator =
+ ImageFrameGenerator::create(fullSize(), false, ColorBehavior::ignore());
m_data = SharedBuffer::create();
m_segmentReader = SegmentReader::createFromSharedBuffer(m_data);
useMockImageDecoderFactory();
@@ -111,8 +111,8 @@ class ImageFrameGeneratorTest : public ::testing::Test,
m_frameCount = count;
if (count > 1) {
m_generator.clear();
- m_generator = ImageFrameGenerator::create(
- fullSize(), true, ImageDecoder::ColorSpaceIgnored, nullptr);
+ m_generator = ImageFrameGenerator::create(fullSize(), true,
+ ColorBehavior::ignore());
useMockImageDecoderFactory();
}
}

Powered by Google App Engine
This is Rietveld 408576698