| 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 f79b9ebfdc87b02ceb1d6c3b41ee98f77b070ce5..17bf38af230b0b53067c54a0dacda9556c01eefe 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
|
| @@ -88,7 +88,12 @@ 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.
|
| + const gfx::ColorSpace& gfxColorSpace() const { return m_gfxColorSpace; }
|
| + // 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;
|
|
|
| @@ -194,6 +199,7 @@ class CORE_EXPORT CanvasRenderingContext
|
| HashSet<String> m_cleanURLs;
|
| HashSet<String> m_dirtyURLs;
|
| CanvasColorSpace m_colorSpace;
|
| + gfx::ColorSpace m_gfxColorSpace;
|
| CanvasContextCreationAttributes m_creationAttributes;
|
| };
|
|
|
|
|