OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 int right, | 104 int right, |
105 int top) const; | 105 int top) const; |
106 SkRect DrawMemoryDisplay(SkCanvas* canvas, | 106 SkRect DrawMemoryDisplay(SkCanvas* canvas, |
107 int top, | 107 int top, |
108 int right, | 108 int right, |
109 int width) const; | 109 int width) const; |
110 SkRect DrawGpuRasterizationStatus(SkCanvas* canvas, | 110 SkRect DrawGpuRasterizationStatus(SkCanvas* canvas, |
111 int right, | 111 int right, |
112 int top, | 112 int top, |
113 int width) const; | 113 int width) const; |
114 SkRect DrawPaintTimeDisplay(SkCanvas* canvas, | |
115 const PaintTimeCounter* paint_time_counter, | |
116 int top, | |
117 int right) const; | |
118 void DrawDebugRect(SkCanvas* canvas, | 114 void DrawDebugRect(SkCanvas* canvas, |
119 SkPaint* paint, | 115 SkPaint* paint, |
120 const DebugRect& rect, | 116 const DebugRect& rect, |
121 SkColor stroke_color, | 117 SkColor stroke_color, |
122 SkColor fill_color, | 118 SkColor fill_color, |
123 float stroke_width, | 119 float stroke_width, |
124 const std::string& label_text) const; | 120 const std::string& label_text) const; |
125 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); | 121 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); |
126 | 122 |
127 void AcquireResource(ResourceProvider* resource_provider); | 123 void AcquireResource(ResourceProvider* resource_provider); |
(...skipping 14 matching lines...) Expand all Loading... |
142 std::vector<DebugRect> paint_rects_; | 138 std::vector<DebugRect> paint_rects_; |
143 | 139 |
144 base::TimeTicks time_of_last_graph_update_; | 140 base::TimeTicks time_of_last_graph_update_; |
145 | 141 |
146 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 142 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
147 }; | 143 }; |
148 | 144 |
149 } // namespace cc | 145 } // namespace cc |
150 | 146 |
151 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 147 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
OLD | NEW |