| 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 ace32243a6d0df42b098fd0a521a0e50fc25041d..06a002e78e9d2070255a72d0235cbd203b7a08fe 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| @@ -501,7 +501,7 @@ void Canvas2DLayerBridge::setIsHidden(bool hidden)
|
| return;
|
|
|
| m_isHidden = newHiddenValue;
|
| - if (m_surface && isHidden() && !m_destructionInProgress && !m_hibernationScheduled) {
|
| + if (CANVAS2D_HIBERNATION_ENABLED && m_surface && isHidden() && !m_destructionInProgress && !m_hibernationScheduled) {
|
| if (m_layer)
|
| m_layer->clearTexture();
|
| m_logger->reportHibernationEvent(HibernationScheduled);
|
|
|