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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |