Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index e8805396aa094994d3774af6d021dc1439dbcf1d..4d6c77edb14f8d808a295621d7933280c19cd2e6 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -42,7 +42,6 @@ |
#include "core/html/canvas/WebGLContextAttributes.h" |
#include "core/html/canvas/WebGLContextEvent.h" |
#include "core/html/canvas/WebGLRenderingContext.h" |
-#include "core/page/ChromeClient.h" |
#include "core/rendering/RenderHTMLCanvas.h" |
#include "platform/MIMETypeRegistry.h" |
#include "platform/RuntimeEnabledFeatures.h" |
@@ -435,9 +434,8 @@ bool HTMLCanvasElement::shouldAccelerate(const IntSize& size) const |
if (!settings || !settings->accelerated2dCanvasEnabled()) |
return false; |
- // Do not use acceleration for small canvases, unless GPU rasterization is available. |
- // GPU raterization is a heuristic to avoid difficult content & whitelist targeted content. |
- if (!(document().frame() && document().frame()->chromeClient().usesGpuRasterization()) && size.width() * size.height() < settings->minimumAccelerated2dCanvasSize()) |
+ // Do not use acceleration for small canvas. |
+ if (size.width() * size.height() < settings->minimumAccelerated2dCanvasSize()) |
return false; |
if (!blink::Platform::current()->canAccelerate2dCanvas()) |