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

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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)
Patch Set: Require both runtime flags Created 3 years, 8 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 a3cf0efbbdfd9ce81ea752de8a098251da5fed64..a0b8f4931d1698017f8e0f59a2b9bd6771e0c0b4 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
@@ -23,10 +23,8 @@ class RecordingImageBufferFallbackSurfaceFactory {
WTF_MAKE_NONCOPYABLE(RecordingImageBufferFallbackSurfaceFactory);
public:
- virtual std::unique_ptr<ImageBufferSurface> CreateSurface(const IntSize&,
- OpacityMode,
- sk_sp<SkColorSpace>,
- SkColorType) = 0;
+ virtual std::unique_ptr<ImageBufferSurface>
+ CreateSurface(const IntSize&, OpacityMode, const CanvasColorParams&) = 0;
virtual ~RecordingImageBufferFallbackSurfaceFactory() {}
protected:
@@ -47,8 +45,7 @@ class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface {
std::unique_ptr<RecordingImageBufferFallbackSurfaceFactory>
fallback_factory = nullptr,
OpacityMode = kNonOpaque,
- sk_sp<SkColorSpace> = nullptr,
- SkColorType = kN32_SkColorType);
+ const CanvasColorParams& = CanvasColorParams());
~RecordingImageBufferSurface() override;
// Implementation of ImageBufferSurface interfaces

Powered by Google App Engine
This is Rietveld 408576698