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

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: More const, better enums 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..0bba84442b5e1d5652032dbb00893a4a43b01fc0 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,
+ globalTargetColorSpace(),
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