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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layer_viewer/PaintProfilerView.js

Issue 2845813003: [DevTools] Host paint profiles in PaintProfilerModel (Closed)
Patch Set: addressed comments Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js » ('j') | 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 this.setMinimumSize(100, 25); 363 this.setMinimumSize(100, 25);
364 this.element.classList.add('overflow-auto'); 364 this.element.classList.add('overflow-auto');
365 365
366 this._treeOutline = new UI.TreeOutlineInShadow(); 366 this._treeOutline = new UI.TreeOutlineInShadow();
367 this.element.appendChild(this._treeOutline.element); 367 this.element.appendChild(this._treeOutline.element);
368 368
369 this._log = []; 369 this._log = [];
370 } 370 }
371 371
372 /** 372 /**
373 * @param {?SDK.Target} target
374 * @param {!Array.<!SDK.PaintProfilerLogItem>} log 373 * @param {!Array.<!SDK.PaintProfilerLogItem>} log
375 */ 374 */
376 setCommandLog(target, log) { 375 setCommandLog(log) {
377 this._target = target;
378 this._log = log; 376 this._log = log;
379 /** @type {!Map<!SDK.PaintProfilerLogItem>} */ 377 /** @type {!Map<!SDK.PaintProfilerLogItem>} */
380 this._treeItemCache = new Map(); 378 this._treeItemCache = new Map();
381 this.updateWindow({left: 0, right: this._log.length}); 379 this.updateWindow({left: 0, right: this._log.length});
382 } 380 }
383 381
384 /** 382 /**
385 * @param {!SDK.PaintProfilerLogItem} logItem 383 * @param {!SDK.PaintProfilerLogItem} logItem
386 */ 384 */
387 _appendLogItem(logItem) { 385 _appendLogItem(logItem) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 * @param {string} name 554 * @param {string} name
557 * @param {string} title 555 * @param {string} title
558 * @param {string} color 556 * @param {string} color
559 */ 557 */
560 constructor(name, title, color) { 558 constructor(name, title, color) {
561 this.name = name; 559 this.name = name;
562 this.title = title; 560 this.title = title;
563 this.color = color; 561 this.color = color;
564 } 562 }
565 }; 563 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698