| Index: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| index a17e8958c228a943000422b26292fa962a16ed0d..ed37a3c9af1b568acf7fdfdf549ccf67c76e96fe 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| @@ -89,6 +89,15 @@ sk_sp<SkColorSpace> CanvasRenderingContext::skColorSpace() const {
|
| return nullptr;
|
| }
|
|
|
| +SkColorType CanvasRenderingContext::colorType() const {
|
| + switch (m_colorSpace) {
|
| + case kLinearRGBCanvasColorSpace:
|
| + return kRGBA_F16_SkColorType;
|
| + default:
|
| + return kN32_SkColorType;
|
| + }
|
| +}
|
| +
|
| void CanvasRenderingContext::dispose() {
|
| // HTMLCanvasElement and CanvasRenderingContext have a circular reference.
|
| // When the pair is no longer reachable, their destruction order is non-
|
|
|