Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html

Issue 233063004: Suppress layer creation for descendants of GPU-rasterized layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move assert disabler in ~CompositedLayerMapping Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/compositing/will-change/gpu-rasterization-hint-added-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
diff --git a/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html b/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
new file mode 100644
index 0000000000000000000000000000000000000000..3aa38dafa88ea9dd0e172392cac2f2e8659e80fc
--- /dev/null
+++ b/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ #container {
+ will-change: top;
+ position: absolute;
+ z-index: 0;
+ left: 200px;
+ top: 100px;
+ width: 100px;
+ height: 100px;
+ background-color: blue;
+ }
+
+ #willChangeOpacity {
+ position: absolute;
+ left: 50px;
+ top: 50px;
+ width: 75px;
+ height: 75px;
+ background-color: green;
+ will-change: opacity;
+ }
+ </style>
+ <script type="text/javascript">
+ if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForGpuRasterizationHintEnabled(true);
+ // Force an update of the compositing triggers.
+ window.internals.forceCompositingUpdate(document);
+ }
+
+ function doTest()
+ {
+ if (window.internals) {
+ window.internals.forceCompositingUpdate(document);
+ }
+ // Adding "will-change: contents" to the container div should
+ // stop its child from compositing.
+ document.getElementById("container").style.willChange = "contents";
+ if (window.testRunner) {
+ document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
+ testRunner.dumpAsText();
+ }
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+
+<body>
+ <div id="container">
+ <div id="willChangeOpacity"></div>
+ </div>
+
+ <pre id="layertree"></pre>
+</body>
+
+</html>
« no previous file with comments | « no previous file | LayoutTests/compositing/will-change/gpu-rasterization-hint-added-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698