-
jamesr@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=94866 Reviewed by Adrienne Walker. Source/Platform: This makes the WebLayerTreeView interface pure virtual to provide better insulation from the implementation. * chromium/public/WebLayerTreeView.h: (WebKit): (Settings): (WebLayerTreeView): (WebKit::WebLayerTreeView::~WebLayerTreeView): Source/WebCore: Renames CCLayerTreeHostClient::updateAnimations -> CCLayerTreeHostClient::animate to avoid a naming collision and to better match the other imperative-sounding calls (like layout). * platform/graphics/chromium/cc/CCLayerTreeHost.cpp: (WebCore::CCLayerTreeHost::updateAnimations): * platform/graphics/chromium/cc/CCLayerTreeHost.h: (CCLayerTreeHostClient): Source/WebKit/chromium: Updates WebLayerTreeView implementation and callers to new interface. The createGraphicsContext3D() wrapper stuff can just go away now since downstream has updated to createOutputSurface(). * WebKit.gypi: * src/WebLayerTreeView.cpp: Removed. * src/WebLayerTreeViewImpl.cpp: (WebKit::WebLayerTreeView::create): (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl): (WebKit::WebLayerTreeViewImpl::initialize): (WebKit): (WebKit::WebLayerTreeViewImpl::setSurfaceReady): (WebKit::WebLayerTreeViewImpl::setRootLayer): (WebKit::WebLayerTreeViewImpl::clearRootLayer): (WebKit::WebLayerTreeViewImpl::compositorIdentifier): (WebKit::WebLayerTreeViewImpl::setViewportSize): (WebKit::WebLayerTreeViewImpl::layoutViewportSize): (WebKit::WebLayerTreeViewImpl::deviceViewportSize): (WebKit::WebLayerTreeViewImpl::setDeviceScaleFactor): (WebKit::WebLayerTreeViewImpl::deviceScaleFactor): (WebKit::WebLayerTreeViewImpl::setBackgroundColor): (WebKit::WebLayerTreeViewImpl::setHasTransparentBackground): (WebKit::WebLayerTreeViewImpl::setVisible): (WebKit::WebLayerTreeViewImpl::setPageScaleFactorAndLimits): (WebKit::WebLayerTreeViewImpl::startPageScaleAnimation): (WebKit::WebLayerTreeViewImpl::setNeedsAnimate): (WebKit::WebLayerTreeViewImpl::setNeedsRedraw): (WebKit::WebLayerTreeViewImpl::commitRequested): (WebKit::WebLayerTreeViewImpl::composite): (WebKit::WebLayerTreeViewImpl::updateAnimations): (WebKit::WebLayerTreeViewImpl::compositeAndReadback): (WebKit::WebLayerTreeViewImpl::finishAllRendering): (WebKit::WebLayerTreeViewImpl::renderingStats): (WebKit::WebLayerTreeViewImpl::setFontAtlas): (WebKit::WebLayerTreeViewImpl::loseCompositorContext): (WebKit::WebLayerTreeViewImpl::willBeginFrame): (WebKit::WebLayerTreeViewImpl::didBeginFrame): (WebKit::WebLayerTreeViewImpl::animate): (WebKit::WebLayerTreeViewImpl::layout): (WebKit::WebLayerTreeViewImpl::applyScrollAndScale): (WebKit::WebLayerTreeViewImpl::createOutputSurface): (WebKit::WebLayerTreeViewImpl::didRecreateOutputSurface): (WebKit::WebLayerTreeViewImpl::willCommit): (WebKit::WebLayerTreeViewImpl::didCommit): (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame): (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers): (WebKit::WebLayerTreeViewImpl::scheduleComposite): * src/WebLayerTreeViewImpl.h: (WebLayerTreeViewImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::renderingStats): (WebKit::WebViewImpl::startPageScaleAnimation): (WebKit::WebViewImpl::setCompositorSurfaceReady): (WebKit::WebViewImpl::animate): (WebKit::WebViewImpl::doPixelReadbackToCanvas): (WebKit::WebViewImpl::paint): (WebKit::WebViewImpl::composite): (WebKit::WebViewImpl::setNeedsRedraw): (WebKit::WebViewImpl::isInputThrottled): (WebKit::WebViewImpl::loseCompositorContext): (WebKit::WebViewImpl::setDeviceScaleFactor): (WebKit::WebViewImpl::computePageScaleFactorLimits): (WebKit::WebViewImpl::setIsTransparent): (WebKit::WebViewImpl::setRootGraphicsLayer): (WebKit::WebViewImpl::scheduleCompositingLayerSync): (WebKit::WebViewImpl::invalidateRootLayerRect): (WebKit::WebViewImpl::setBackgroundColor): (WebKit::WebViewImpl::scheduleAnimation): (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): (WebKit): (WebKit::WebViewImpl::updateLayerTreeViewport): (WebKit::WebViewImpl::setVisibilityState): * src/WebViewImpl.h: (WebKit): * tests/CCLayerTreeHostTest.cpp: * tests/CCThreadedTest.cpp: * tests/CCThreadedTest.h: (WebKitTests::TestHooks::animate): * tests/FakeCCLayerTreeHostClient.h: * tests/GraphicsLayerChromiumTest.cpp: (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest): (WebKit::GraphicsLayerChromiumTest::~GraphicsLayerChromiumTest): (GraphicsLayerChromiumTest): * tests/WebLayerTest.cpp: * tests/WebLayerTreeViewTest.cpp: * tests/WebLayerTreeViewTestCommon.h: (MockWebLayerTreeViewClient): Tools: Updates DumpRenderTree's WebViewHost to vend a WebCompositorOutputSurface so DumpRenderTree can run compositing tests. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::createOutputSurface): * DumpRenderTree/chromium/WebViewHost.h: (WebViewHost): * DumpRenderTree/chromium/WebViewHostOutputSurface.cpp: Copied from Source/WebKit/chromium/src/WebLayerTreeViewImpl.h. (WebKit): (WebKit::WebViewHostOutputSurface::WebViewHostOutputSurface): (WebKit::WebViewHostOutputSurface::~WebViewHostOutputSurface): (WebKit::WebViewHostOutputSurface::bindToClient): (WebKit::WebViewHostOutputSurface::capabilities): (WebKit::WebViewHostOutputSurface::context3D): (WebKit::WebViewHostOutputSurface::sendFrameToParentCompositor): * DumpRenderTree/chromium/WebViewHostOutputSurface.h: Copied from Source/WebKit/chromium/src/WebLayerTreeViewImpl.h. (WebKit): (WebViewHostOutputSurface): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4858e5fa