Skip to content
  • jamesr@google.com's avatar
    Remove the dependency on GraphicsLayer from CCLayerTreeHost. · 9847f918
    jamesr@google.com authored
    Move root layer management into the NonCompositedContentHost.
    Have WebViewImpl create a NonCompositedContentHost explicitly.
    https://bugs.webkit.org/show_bug.cgi?id=67883
    
    Patch by Antoine Labour <piman@chromium.org> on 2011-09-14
    Reviewed by James Robinson.
    
    Source/WebCore:
    
    Covered by compositing/ layout tests.
    
    * platform/graphics/chromium/NonCompositedContentHost.cpp:
    (WebCore::NonCompositedContentHost::setRootLayer):
    (WebCore::NonCompositedContentHost::setViewport):
    (WebCore::NonCompositedContentHost::setVisible):
    (WebCore::NonCompositedContentHost::clearRenderSurfacesRecursive):
    (WebCore::NonCompositedContentHost::invalidateRect):
    * platform/graphics/chromium/NonCompositedContentHost.h:
    (WebCore::NonCompositedContentHost::topLevelRootLayer):
    * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
    (WebCore::CCLayerTreeHost::create):
    (WebCore::CCLayerTreeHost::CCLayerTreeHost):
    (WebCore::CCLayerTreeHost::initialize):
    (WebCore::CCLayerTreeHost::commitTo):
    (WebCore::CCLayerTreeHost::didRecreateGraphicsContext):
    (WebCore::CCLayerTreeHost::setViewport):
    (WebCore::CCLayerTreeHost::setVisible):
    (WebCore::CCLayerTreeHost::updateLayers):
    (WebCore::CCLayerTreeHost::paintLayerContents):
    * platform/graphics/chromium/cc/CCLayerTreeHost.h:
    (WebCore::CCLayerTreeHost::rootLayer):
    
    Source/WebKit/chromium:
    
    * src/WebViewImpl.cpp:
    (WebKit::WebViewImpl::setRootGraphicsLayer):
    (WebKit::WebViewImpl::invalidateRootLayerRect):
    (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
    (WebKit::WebViewImpl::updateLayerTreeViewport):
    (WebKit::WebViewImpl::setVisibilityState):
    * src/WebViewImpl.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9847f918