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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 double current_upper_bound; | 66 double current_upper_bound; |
67 const double default_upper_bound; | 67 const double default_upper_bound; |
68 const double indicator; | 68 const double indicator; |
69 }; | 69 }; |
70 | 70 |
71 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id); | 71 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id); |
72 | 72 |
73 virtual const char* LayerTypeAsString() const OVERRIDE; | 73 virtual const char* LayerTypeAsString() const OVERRIDE; |
74 | 74 |
75 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; | 75 virtual void AsValueInto(base::DictionaryValue* dict) const OVERRIDE; |
76 | 76 |
77 void UpdateHudContents(); | 77 void UpdateHudContents(); |
78 void DrawHudContents(SkCanvas* canvas); | 78 void DrawHudContents(SkCanvas* canvas); |
79 | 79 |
80 void DrawText(SkCanvas* canvas, | 80 void DrawText(SkCanvas* canvas, |
81 SkPaint* paint, | 81 SkPaint* paint, |
82 const std::string& text, | 82 const std::string& text, |
83 SkPaint::Align align, | 83 SkPaint::Align align, |
84 int size, | 84 int size, |
85 int x, | 85 int x, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 std::vector<DebugRect> paint_rects_; | 131 std::vector<DebugRect> paint_rects_; |
132 | 132 |
133 base::TimeTicks time_of_last_graph_update_; | 133 base::TimeTicks time_of_last_graph_update_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 135 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
136 }; | 136 }; |
137 | 137 |
138 } // namespace cc | 138 } // namespace cc |
139 | 139 |
140 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 140 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
OLD | NEW |