Skip to content
  • wjmaclean@chromium.org's avatar
    [chromium] Add backend compositor support for rescaling (zooming) textures during zoom animation. · bcdc0689
    wjmaclean@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=66472
    
    Source/WebCore:
    
    This patch contains plumbing from Internals to WebViewImpl that can be removed
    at a later time when the zoom animator code is complete.
    
    Reviewed by James Robinson.
    
    Test: platform/chromium/compositing/zoom-animator-scale-test.html
    
    * page/Settings.cpp:
    (WebCore::Settings::Settings):
    * page/Settings.h:
    (WebCore::Settings::setZoomAnimatorScale):
    (WebCore::Settings::zoomAnimatorScale):
    * platform/graphics/chromium/LayerRendererChromium.cpp:
    (WebCore::LayerRendererChromium::LayerRendererChromium):
    (WebCore::LayerRendererChromium::drawLayersInternal):
    * platform/graphics/chromium/LayerRendererChromium.h:
    (WebCore::LayerRendererChromium::setZoomAnimatorScale):
    * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
    (WebCore::CCLayerTreeHost::CCLayerTreeHost):
    (WebCore::CCLayerTreeHost::commitTo):
    (WebCore::CCLayerTreeHost::setZoomAnimatorScale):
    (WebCore::CCLayerTreeHost::updateLayers):
    * platform/graphics/chromium/cc/CCLayerTreeHost.h:
    * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
    (WebCore::CCLayerTreeHostImpl::setZoomAnimatorScale):
    * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
    * testing/Internals.cpp:
    (WebCore::Internals::setZoomAnimatorScale):
    * testing/Internals.h:
    * testing/Internals.idl:
    
    Source/WebKit/chromium:
    
    This patch contains plumbing from Internals to WebViewImpl that can be removed
    at a later time when the zoom animator code is complete.
    
    Reviewed by James Robinson.
    
    * src/WebViewImpl.cpp:
    (WebKit::WebViewImpl::setZoomLevel):
    (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
    
    LayoutTests:
    
    Initial tests for zoomAnimatorChromium backend.
    
    Reviewed by James Robinson.
    
    * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.png: Added.
    * platform/chromium-gpu-linux/platform/chromium/compositing/zoom-animator-scale-test-expected.txt: Added.
    * platform/chromium/compositing/zoom-animator-scale-test.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bcdc0689