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

Unified Diff: third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h

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/test/MockImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h b/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
index 5c9ad1007343cfefbeddbd33e4349bafc0d9f346..0de03fc07812496489d55e015957b1e9fb106911 100644
--- a/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h
@@ -67,7 +67,8 @@ class MockImageDecoder : public ImageDecoder {
MockImageDecoder(MockImageDecoderClient* client)
: ImageDecoder(AlphaPremultiplied,
- ColorSpaceApplied,
+ ColorSpaceTransformed,
+ targetColorSpaceForTesting(),
noDecodedImageByteLimit),
m_client(client) {}
@@ -112,7 +113,7 @@ class MockImageDecoder : public ImageDecoder {
void initializeNewFrame(size_t index) override {
m_frameBufferCache[index].setSizeAndColorSpace(
- size().width(), size().height(), colorSpace());
+ size().width(), size().height(), colorSpaceForSkImages());
m_frameBufferCache[index].setHasAlpha(false);
}

Powered by Google App Engine
This is Rietveld 408576698