Chromium Code Reviews| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 int right) const; | 112 int right) const; |
| 113 void DrawDebugRect(SkCanvas* canvas, | 113 void DrawDebugRect(SkCanvas* canvas, |
| 114 SkPaint* paint, | 114 SkPaint* paint, |
| 115 const DebugRect& rect, | 115 const DebugRect& rect, |
| 116 SkColor stroke_color, | 116 SkColor stroke_color, |
| 117 SkColor fill_color, | 117 SkColor fill_color, |
| 118 float stroke_width, | 118 float stroke_width, |
| 119 const std::string& label_text) const; | 119 const std::string& label_text) const; |
| 120 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); | 120 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); |
| 121 | 121 |
| 122 scoped_ptr<ScopedResource> hud_resource_; | 122 void AcquireResource(ResourceProvider* resource_provider); |
| 123 void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider); | |
| 124 | |
| 125 ScopedPtrVector<ScopedResource> resources_; | |
| 126 | |
|
danakj
2014/08/27 13:25:01
nit: drop whitespace
| |
| 123 scoped_ptr<SkCanvas> hud_canvas_; | 127 scoped_ptr<SkCanvas> hud_canvas_; |
| 124 | 128 |
| 125 skia::RefPtr<SkTypeface> typeface_; | 129 skia::RefPtr<SkTypeface> typeface_; |
| 126 | 130 |
| 127 Graph fps_graph_; | 131 Graph fps_graph_; |
| 128 Graph paint_time_graph_; | 132 Graph paint_time_graph_; |
| 129 MemoryHistory::Entry memory_entry_; | 133 MemoryHistory::Entry memory_entry_; |
| 130 int fade_step_; | 134 int fade_step_; |
| 131 std::vector<DebugRect> paint_rects_; | 135 std::vector<DebugRect> paint_rects_; |
| 132 | 136 |
| 133 base::TimeTicks time_of_last_graph_update_; | 137 base::TimeTicks time_of_last_graph_update_; |
| 134 | 138 |
| 135 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 139 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 136 }; | 140 }; |
| 137 | 141 |
| 138 } // namespace cc | 142 } // namespace cc |
| 139 | 143 |
| 140 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 144 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |