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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 SkColor stroke_color, | 118 SkColor stroke_color, |
119 SkColor fill_color, | 119 SkColor fill_color, |
120 float stroke_width, | 120 float stroke_width, |
121 const std::string& label_text) const; | 121 const std::string& label_text) const; |
122 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); | 122 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); |
123 | 123 |
124 void AcquireResource(ResourceProvider* resource_provider); | 124 void AcquireResource(ResourceProvider* resource_provider); |
125 void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider); | 125 void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider); |
126 | 126 |
127 ScopedPtrVector<ScopedResource> resources_; | 127 ScopedPtrVector<ScopedResource> resources_; |
128 skia::RefPtr<SkSurface> hud_surface_; | 128 scoped_ptr<SkCanvas> hud_canvas_; |
| 129 |
| 130 skia::RefPtr<SkTypeface> typeface_; |
129 | 131 |
130 float internal_contents_scale_; | 132 float internal_contents_scale_; |
131 gfx::Size internal_content_bounds_; | 133 gfx::Size internal_content_bounds_; |
132 | 134 |
133 Graph fps_graph_; | 135 Graph fps_graph_; |
134 Graph paint_time_graph_; | 136 Graph paint_time_graph_; |
135 MemoryHistory::Entry memory_entry_; | 137 MemoryHistory::Entry memory_entry_; |
136 int fade_step_; | 138 int fade_step_; |
137 std::vector<DebugRect> paint_rects_; | 139 std::vector<DebugRect> paint_rects_; |
138 | 140 |
139 base::TimeTicks time_of_last_graph_update_; | 141 base::TimeTicks time_of_last_graph_update_; |
140 | 142 |
141 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 143 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
142 }; | 144 }; |
143 | 145 |
144 } // namespace cc | 146 } // namespace cc |
145 | 147 |
146 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 148 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
OLD | NEW |