| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |