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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js

Issue 2383323002: [SPv2] Introduce an option to output the GraphicsLayer tree as a flat layer list. (Closed)
Patch Set: none Created 4 years, 3 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: third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js b/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
index d799d0f0843e8f21a182656eadc9e199768ffd68..2d9d6afd9bad4cf41e8dc5849bb7d2173b30e8ff 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
@@ -2,6 +2,7 @@
// time.
window.testIsAsync = false;
window.outputRepaintRects = true;
+window.outputLayerList = false;
// All repaint tests are asynchronous.
if (window.testRunner)
@@ -59,6 +60,9 @@ function finishRepaintTest()
if (window.layerTreeAsTextAdditionalFlags)
flags |= window.layerTreeAsTextAdditionalFlags;
+ if (window.outputLayerList)
+ flags |= window.internals.OUTPUT_CHILDREN_AS_LAYER_LIST;
+
var repaintRects = window.internals.layerTreeAsText(document, flags);
internals.stopTrackingRepaints(document);

Powered by Google App Engine
This is Rietveld 408576698