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

Unified Diff: LayoutTests/compositing/will-change/gpu-rasterization-hint-suppresses-compositing.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
Index: LayoutTests/compositing/will-change/gpu-rasterization-hint-suppresses-compositing.html
diff --git a/LayoutTests/compositing/will-change/gpu-rasterization-hint-suppresses-compositing.html b/LayoutTests/compositing/will-change/gpu-rasterization-hint-suppresses-compositing.html
new file mode 100644
index 0000000000000000000000000000000000000000..a18b6d885439944e46d05bc9db7757e7dd0c7740
--- /dev/null
+++ b/LayoutTests/compositing/will-change/gpu-rasterization-hint-suppresses-compositing.html
@@ -0,0 +1,92 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ #container {
+ will-change: contents;
+ z-index: 0;
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ }
+
+ .shouldNotComposite {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+ }
+
+ #willChangeOpacity {
+ will-change: opacity;
+ top: 0px;
+ left: 0px;
+ }
+
+ #willChangeContents {
+ will-change: contents;
+ top: 0px;
+ left: 60px;
+ }
+
+ #willChangeTop {
+ will-change: top;
+ top: 0px;
+ left: 120px;
+ }
+
+ #willChangeTransform {
+ will-change: -webkit-transform;
+ top: 60px;
+ left: 0px;
+ }
+
+ #animateOpacity {
+
+ top: 60px;
+ left: 60px;
+ -webkit-animation: fade-in-out 0.1s linear infinite alternate;
+ }
+
+ @-webkit-keyframes fade-in-out { from { opacity: 0.3; } to { opacity: 0.9; } }
+
+ </style>
+
+ <script>
+ if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForGpuRasterizationHintEnabled(true);
+ window.internals.settings.setAcceleratedCompositingForAnimationEnabled(true);
+ // Force an update of the compositing triggers.
+ window.internals.forceCompositingUpdate(document);
+ }
+
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ function animationEventListener() {
+ if (window.testRunner) {
+ document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
+ }
+ }
+
+ window.addEventListener('load', function() {
+ document.getElementById("animateOpacity").addEventListener('webkitAnimationIteration', animationEventListener);
+ }, false);
+ </script>
+</head>
+<body>
+ <div id="container">
+ <div id="willChangeOpacity" class="shouldNotComposite">
+ <div id="willChangeTransform" class="shouldNotComposite"></div>
+ </div>
+ <div id="willChangeContents" class="shouldNotComposite"></div>
+ <div id="willChangeTop" class="shouldNotComposite"></div>
+ <div id="animateOpacity" class="shouldNotComposite"></div>
+ </div>
+
+ <pre id="layertree"></pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698