haikuwebkit/LayoutTests/displaylists/layer-dispay-list.html

25 lines
463 B
HTML
Raw Permalink Normal View History

Make a way to test display-list drawing https://bugs.webkit.org/show_bug.cgi?id=152956 Reviewed by Ryosuke Niwa. Source/WebCore: Make it possible to toggle display-list drawing for a given compositing layer via internals, as well as getting a textual representation of the display list, optionally including items with platform-specific behavior. Add one test that uses this. Test: displaylists/layer-dispay-list.html * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::displayListAsText): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::displayListAsText): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/displaylists/DisplayList.cpp: (WebCore::DisplayList::DisplayList::shouldDumpForFlags): (WebCore::DisplayList::DisplayList::asText): * platform/graphics/displaylists/DisplayList.h: * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::setUsesDisplayListDrawing): (WebCore::RenderLayerBacking::displayListAsText): * rendering/RenderLayerBacking.h: * testing/Internals.cpp: (WebCore::Internals::setElementUsesDisplayListDrawing): (WebCore::Internals::displayListForElement): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Enable displaylists tests on Mac and iOS. * TestExpectations: * displaylists/layer-dispay-list-expected.txt: Added. * displaylists/layer-dispay-list.html: Added. * platform/ios-simulator/TestExpectations: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/171240@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-01-15 23:57:41 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 100px;
height: 100px;
background-color: green;
border: 2px solid blue;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
<script src="resources/dump-target-display-list.js"></script>
Make a way to test display-list drawing https://bugs.webkit.org/show_bug.cgi?id=152956 Reviewed by Ryosuke Niwa. Source/WebCore: Make it possible to toggle display-list drawing for a given compositing layer via internals, as well as getting a textual representation of the display list, optionally including items with platform-specific behavior. Add one test that uses this. Test: displaylists/layer-dispay-list.html * platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::displayListAsText): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::displayListAsText): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/displaylists/DisplayList.cpp: (WebCore::DisplayList::DisplayList::shouldDumpForFlags): (WebCore::DisplayList::DisplayList::asText): * platform/graphics/displaylists/DisplayList.h: * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::setUsesDisplayListDrawing): (WebCore::RenderLayerBacking::displayListAsText): * rendering/RenderLayerBacking.h: * testing/Internals.cpp: (WebCore::Internals::setElementUsesDisplayListDrawing): (WebCore::Internals::displayListForElement): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Enable displaylists tests on Mac and iOS. * TestExpectations: * displaylists/layer-dispay-list-expected.txt: Added. * displaylists/layer-dispay-list.html: Added. * platform/ios-simulator/TestExpectations: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/171240@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-01-15 23:57:41 +00:00
</head>
<body>
<div id="target" class="composited box">
</div>
<pre id="output"></pre>
</body>
</html>