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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h

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/RecordingImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
index f7478119e8e9e2c12542b165cb53985b0b37484e..a018fcdab173795d87f39d1a586b7374946ceee5 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
@@ -27,8 +27,10 @@ class RecordingImageBufferFallbackSurfaceFactory {
WTF_MAKE_NONCOPYABLE(RecordingImageBufferFallbackSurfaceFactory);
public:
- virtual std::unique_ptr<ImageBufferSurface>
- createSurface(const IntSize&, OpacityMode, sk_sp<SkColorSpace>) = 0;
+ virtual std::unique_ptr<ImageBufferSurface> createSurface(const IntSize&,
+ OpacityMode,
+ sk_sp<SkColorSpace>,
+ SkColorType) = 0;
virtual ~RecordingImageBufferFallbackSurfaceFactory() {}
protected:
@@ -49,7 +51,8 @@ class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface {
std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory>
fallbackFactory = nullptr,
OpacityMode = NonOpaque,
- sk_sp<SkColorSpace> = nullptr);
+ sk_sp<SkColorSpace> = nullptr,
+ SkColorType = kN32_SkColorType);
~RecordingImageBufferSurface() override;
// Implementation of ImageBufferSurface interfaces

Powered by Google App Engine
This is Rietveld 408576698