Skip to content
  • simon.fraser@apple.com's avatar
    Add some initial visible rect tests and tweak the visible wash layer · 0f709339
    simon.fraser@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=99095
    
    Reviewed by Tim Horton.
    
    Source/WebCore:
    
    Make the m_visibleTileWashLayer more useful by showing it for all
    layers with transforms, not just tiled layers. This is a debugging
    layer normally disabled, but enabled by #defining VISIBLE_TILE_WASH.
    
    Tests: compositing/visible-rect/2d-transformed.html
           compositing/visible-rect/3d-transformed.html
           compositing/visible-rect/clipped-by-viewport copy.html
           compositing/visible-rect/clipped-by-viewport.html
           compositing/visible-rect/clipped-visible-rect.html
    
    * platform/graphics/ca/GraphicsLayerCA.cpp:
    (WebCore::GraphicsLayerCA::recursiveCommitChanges):
    (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
    * platform/graphics/ca/GraphicsLayerCA.h:
    
    LayoutTests:
    
    Add some tests of the GraphicsLayerCA visibleRect for simple cases.
    
    Skip these tests on platforms that don't log layer visible rects
    (all non-Mac).
    
    * compositing/visible-rect/2d-transformed-expected.txt: Added.
    * compositing/visible-rect/2d-transformed.html: Added.
    * compositing/visible-rect/clipped-by-viewport-expected.txt: Added.
    * compositing/visible-rect/clipped-by-viewport.html: Added.
    * compositing/visible-rect/clipped-visible-rect-expected.txt: Added.
    * compositing/visible-rect/clipped-visible-rect.html: Added.
    * platform/chromium-android/TestExpectations:
    * platform/chromium/TestExpectations:
    * platform/chromium/virtual/softwarecompositing/TestExpectations: Added.
    * platform/efl/TestExpectations:
    * platform/gtk/TestExpectations:
    * platform/qt/TestExpectations:
    * platform/win/TestExpectations:
    * platform/wincairo/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0f709339