Chromium Code Reviews| 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 5da3199bae3be16c86076a0262e3e856357a6e7a..ce8c3fc7cdce39f19d98471195da2302ab41f4b2 100644 |
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h |
| @@ -32,6 +32,7 @@ |
| #include "core/layout/HitTestCanvasResult.h" |
| #include "core/offscreencanvas/OffscreenCanvas.h" |
| #include "third_party/skia/include/core/SkColorSpace.h" |
| +#include "third_party/skia/include/core/SkImageInfo.h" |
| #include "wtf/HashSet.h" |
| #include "wtf/Noncopyable.h" |
| #include "wtf/text/StringHash.h" |
| @@ -85,6 +86,7 @@ class CORE_EXPORT CanvasRenderingContext |
| CanvasColorSpace colorSpace() const { return m_colorSpace; }; |
| WTF::String colorSpaceAsString() const; |
| sk_sp<SkColorSpace> skColorSpace() const; |
| + SkColorType colorType() const; |
|
xidachen
2016/10/18 15:40:37
Should we make it more consistent? As we call skCo
Justin Novosad
2016/10/18 17:02:41
In general we should not use sk prefixes in blink.
|
| virtual PassRefPtr<Image> getImage(AccelerationHint, |
| SnapshotReason) const = 0; |