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

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

Issue 2425113002: Fix the linear-rgb canvas color space so that it renders (Closed)
Patch Set: Created 4 years, 2 months 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/RecordingImageBufferSurfaceTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
index 3ea2a9e61457c5eaacb3eb4ba48e76ec726c5289..295ff8f016335a969e5ec6b90baa4243665b3876 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
@@ -77,10 +77,12 @@ class MockSurfaceFactory : public RecordingImageBufferFallbackSurfaceFactory {
virtual std::unique_ptr<ImageBufferSurface> createSurface(
const IntSize& size,
OpacityMode opacityMode,
- sk_sp<SkColorSpace> colorSpace) {
+ sk_sp<SkColorSpace> colorSpace,
+ SkColorType colorType) {
m_createSurfaceCount++;
return wrapUnique(new UnacceleratedImageBufferSurface(
- size, opacityMode, InitializeImagePixels, std::move(colorSpace)));
+ size, opacityMode, InitializeImagePixels, std::move(colorSpace),
+ colorType));
}
virtual ~MockSurfaceFactory() {}

Powered by Google App Engine
This is Rietveld 408576698