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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineFrameModel.js

Issue 1945813002: cc: Make LayerTreeImpl dump layer list to FrameViewer and Devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comments 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 * @this {WebInspector.DeferredTracingLayerTree} 484 * @this {WebInspector.DeferredTracingLayerTree}
485 * @param {?Object} result 485 * @param {?Object} result
486 */ 486 */
487 function onGotObject(result) 487 function onGotObject(result)
488 { 488 {
489 if (!result) 489 if (!result)
490 return; 490 return;
491 var viewport = result["device_viewport_size"]; 491 var viewport = result["device_viewport_size"];
492 var tiles = result["active_tiles"]; 492 var tiles = result["active_tiles"];
493 var rootLayer = result["active_tree"]["root_layer"]; 493 var rootLayer = result["active_tree"]["root_layer"];
494 var layers = result["active_tree"]["layers"];
494 var layerTree = new WebInspector.TracingLayerTree(this._target); 495 var layerTree = new WebInspector.TracingLayerTree(this._target);
495 layerTree.setViewportSize(viewport); 496 layerTree.setViewportSize(viewport);
496 layerTree.setTiles(tiles); 497 layerTree.setTiles(tiles);
497 layerTree.setLayers(rootLayer, callback.bind(null, layerTree)); 498 layerTree.setLayers(rootLayer, layers, callback.bind(null, layerTree ));
498 } 499 }
499 }, 500 },
500 501
501 __proto__: WebInspector.DeferredLayerTree.prototype 502 __proto__: WebInspector.DeferredLayerTree.prototype
502 }; 503 };
503 504
504 505
505 /** 506 /**
506 * @constructor 507 * @constructor
507 * @param {number} startTime 508 * @param {number} startTime
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 WebInspector.PendingFrame = function(triggerTime, timeByCategory) 650 WebInspector.PendingFrame = function(triggerTime, timeByCategory)
650 { 651 {
651 /** @type {!Object.<string, number>} */ 652 /** @type {!Object.<string, number>} */
652 this.timeByCategory = timeByCategory; 653 this.timeByCategory = timeByCategory;
653 /** @type {!Array.<!WebInspector.LayerPaintEvent>} */ 654 /** @type {!Array.<!WebInspector.LayerPaintEvent>} */
654 this.paints = []; 655 this.paints = [];
655 /** @type {number|undefined} */ 656 /** @type {number|undefined} */
656 this.mainFrameId = undefined; 657 this.mainFrameId = undefined;
657 this.triggerTime = triggerTime; 658 this.triggerTime = triggerTime;
658 } 659 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698