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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h

Issue 2660393002: Use gfx::ColorSpace instead of SkColorSpace in Blink (Closed)
Patch Set: Rebase (again) Created 3 years, 10 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 ec3674d7cbe1c6f5b250ece8280410a8a18d927e..406457ddcac348e06bfbcbbc9bb849fe067e16c0 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -86,9 +86,15 @@ class CORE_EXPORT CanvasRenderingContext
CanvasColorSpace colorSpace() const { return m_colorSpace; };
WTF::String colorSpaceAsString() const;
- sk_sp<SkColorSpace> skColorSpace() 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;
ColorBehavior colorBehaviorForMediaDrawnToCanvas() const;
+ bool skSurfacesUseColorSpace() const;
virtual PassRefPtr<Image> getImage(AccelerationHint,
SnapshotReason) const = 0;

Powered by Google App Engine
This is Rietveld 408576698