Index: Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp (revision 99503) |
+++ Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp (working copy) |
@@ -47,6 +47,7 @@ |
: m_sourceFrameNumber(-1) |
, m_frameNumber(0) |
, m_settings(settings) |
+ , m_visible(true) |
{ |
ASSERT(CCProxy::isImplThread()); |
} |
@@ -122,6 +123,10 @@ |
void CCLayerTreeHostImpl::setVisible(bool visible) |
{ |
+ if (m_visible == visible) |
+ return; |
+ m_visible = visible; |
+ |
if (m_layerRenderer) |
m_layerRenderer->setVisible(visible); |
} |