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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.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/core/html/canvas/CanvasRenderingContext.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index 0a6a23691497677ed02aab1ccb14c988d7ec3576..84040416b5b5a439431d0e4a9418dd82fe36816e 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -89,21 +89,11 @@ class CORE_EXPORT CanvasRenderingContext
HTMLCanvasElement* canvas() const { return canvas_; }
- CanvasColorSpace ColorSpace() const;
WTF::String ColorSpaceAsString() const;
- CanvasPixelFormat PixelFormat() const;
WTF::String PixelFormatAsString() const;
- bool LinearPixelMath() const;
-
- // The color space in which the the content should be interpreted by the
- // compositor. This is always defined.
- gfx::ColorSpace GfxColorSpace() const;
- // The color space that should be used for SkSurface creation. This may
- // be nullptr.
- sk_sp<SkColorSpace> SkSurfaceColorSpace() const;
- SkColorType ColorType() const;
+
+ const CanvasColorParams& color_params() const { return color_params_; }
ColorBehavior ColorBehaviorForMediaDrawnToCanvas() const;
- bool SkSurfacesUseColorSpace() const;
virtual PassRefPtr<Image> GetImage(AccelerationHint,
SnapshotReason) const = 0;

Powered by Google App Engine
This is Rietveld 408576698