| Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| index dbc5d45ac42fd110fdd4763d19ac2087898c7aaa..8315809bbcd6db09e147f32b06413f366af05dc3 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| @@ -476,8 +476,7 @@ SkSurface* Canvas2DLayerBridge::getOrCreateSurface(AccelerationHint hint)
|
|
|
| bool wantAcceleration = shouldAccelerate(hint);
|
| bool surfaceIsAccelerated;
|
| -
|
| - if (isHidden() && wantAcceleration) {
|
| + if (CANVAS2D_BACKGROUND_RENDER_SWITCH_TO_CPU && isHidden() && wantAcceleration) {
|
| wantAcceleration = false;
|
| m_softwareRenderingWhileHidden = true;
|
| }
|
|
|