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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineFrameOverview.js

Issue 450973002: DevTools: animate changes to flame chart window. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 this._context.lineTo(this._maxInnerBarWidth, y); 268 this._context.lineTo(this._maxInnerBarWidth, y);
269 this._context.stroke(); 269 this._context.stroke();
270 this._context.restore(); 270 this._context.restore();
271 271
272 bottomOffset -= height; 272 bottomOffset -= height;
273 } 273 }
274 // Draw a contour for the total frame time. 274 // Draw a contour for the total frame time.
275 var y0 = Math.floor(windowHeight - frame.duration * scale) + 0.5; 275 var y0 = Math.floor(windowHeight - frame.duration * scale) + 0.5;
276 var y1 = windowHeight + 0.5; 276 var y1 = windowHeight + 0.5;
277 277
278 this._context.strokeStyle = "rgba(90, 90, 90, 0.3)"; 278 this._context.strokeStyle = "rgba(90, 90, 90, 0.2)";
279 this._context.beginPath(); 279 this._context.beginPath();
280 this._context.moveTo(x, y1); 280 this._context.moveTo(x, y1);
281 this._context.lineTo(x, y0); 281 this._context.lineTo(x, y0);
282 this._context.lineTo(x + width, y0); 282 this._context.lineTo(x + width, y0);
283 this._context.lineTo(x + width, y1); 283 this._context.lineTo(x + width, y1);
284 this._context.stroke(); 284 this._context.stroke();
285 }, 285 },
286 286
287 /** 287 /**
288 * @param {number} windowLeft 288 * @param {number} windowLeft
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 * @param {number} time 362 * @param {number} time
363 * @param {function(number, {startTime:number, endTime:number}):number} comp arator 363 * @param {function(number, {startTime:number, endTime:number}):number} comp arator
364 */ 364 */
365 _firstBarAfter: function(time, comparator) 365 _firstBarAfter: function(time, comparator)
366 { 366 {
367 return insertionIndexForObjectInListSortedByFunction(time, this._barTime s, comparator); 367 return insertionIndexForObjectInListSortedByFunction(time, this._barTime s, comparator);
368 }, 368 },
369 369
370 __proto__: WebInspector.TimelineOverviewBase.prototype 370 __proto__: WebInspector.TimelineOverviewBase.prototype
371 } 371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698