| 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 93fb821796e61a8bb960b3153acdd4fe120f9787..7f3fc753c733b8429820b8b45424724f8f52161f 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| @@ -283,8 +283,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;
|
| }
|
|
|