| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="stylesheet" | 8 <link rel="stylesheet" |
| 9 href="/tracing/ui/extras/chrome/cc/picture_ops_chart_summary_view.css"> | 9 href="/tracing/ui/extras/chrome/cc/picture_ops_chart_summary_view.css"> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 __proto__: HTMLUnknownElement.prototype, | 42 __proto__: HTMLUnknownElement.prototype, |
| 43 | 43 |
| 44 decorate: function() { | 44 decorate: function() { |
| 45 this.picture_ = undefined; | 45 this.picture_ = undefined; |
| 46 this.pictureDataProcessed_ = false; | 46 this.pictureDataProcessed_ = false; |
| 47 | 47 |
| 48 this.chartScale_ = window.devicePixelRatio; | 48 this.chartScale_ = window.devicePixelRatio; |
| 49 | 49 |
| 50 this.chart_ = document.createElement('canvas'); | 50 this.chart_ = document.createElement('canvas'); |
| 51 this.chartCtx_ = this.chart_.getContext('2d'); | 51 this.chartCtx_ = this.chart_.getContext('2d'); |
| 52 this.appendChild(this.chart_); | 52 Polymer.dom(this).appendChild(this.chart_); |
| 53 | 53 |
| 54 this.opsTimingData_ = []; | 54 this.opsTimingData_ = []; |
| 55 | 55 |
| 56 this.chartWidth_ = 0; | 56 this.chartWidth_ = 0; |
| 57 this.chartHeight_ = 0; | 57 this.chartHeight_ = 0; |
| 58 this.requiresRedraw_ = true; | 58 this.requiresRedraw_ = true; |
| 59 | 59 |
| 60 this.currentBarMouseOverTarget_ = null; | 60 this.currentBarMouseOverTarget_ = null; |
| 61 | 61 |
| 62 this.chart_.addEventListener('mousemove', this.onMouseMove_.bind(this)); | 62 this.chart_.addEventListener('mousemove', this.onMouseMove_.bind(this)); |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 resetOpsTimingData_: function() { | 463 resetOpsTimingData_: function() { |
| 464 this.opsTimingData_.length = 0; | 464 this.opsTimingData_.length = 0; |
| 465 } | 465 } |
| 466 }; | 466 }; |
| 467 | 467 |
| 468 return { | 468 return { |
| 469 PictureOpsChartSummaryView: PictureOpsChartSummaryView | 469 PictureOpsChartSummaryView: PictureOpsChartSummaryView |
| 470 }; | 470 }; |
| 471 }); | 471 }); |
| 472 </script> | 472 </script> |
| OLD | NEW |