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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix nits, rebase Created 4 years, 6 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: tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html b/tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html
index 8975a61e18198bd31970fab9b139aeda816f3e98..a54deecabfca9dd67d2c4f919a8656ebf12865de 100644
--- a/tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html
+++ b/tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html
@@ -1152,17 +1152,17 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
var lthi = this.layerTreeImpl_.layerTreeHostImpl;
var renderProcess = lthi.objectInstance.parent;
var tasks = [];
- renderProcess.iterateAllEvents(function(event) {
+ for (var event of renderProcess.getDescendantEvents()) {
if (!(event instanceof tr.model.Slice))
- return;
+ continue;
var tile = tr.e.cc.getTileFromRasterTaskSlice(event);
if (tile === undefined)
- return false;
+ continue;
if (tile.containingSnapshot == lthi)
tasks.push(event);
- }, this);
+ }
return tasks;
},
« no previous file with comments | « tracing/tracing/ui/brushing_state.html ('k') | tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698