Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| index 9366ebfe73b95b24ce071896b444d2144c4c7587..f6c00754f645c41132bcd77ebcd31c2964d79630 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| @@ -857,6 +857,9 @@ class UnacceleratedSurfaceFactory |
| }; |
| bool HTMLCanvasElement::shouldUseDisplayList(const IntSize& deviceSize) { |
| + if (m_context->colorSpace() != CanvasColorSpace::kLegacyCanvasColorSpace) |
|
Justin Novosad
2016/11/02 19:49:48
"CanvasColorSpace::" is not needed.
zakerinasab
2016/11/02 19:57:23
Done.
|
| + return false; |
| + |
| if (RuntimeEnabledFeatures::forceDisplayList2dCanvasEnabled()) |
| return true; |