| 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 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 double current_upper_bound; | 64 double current_upper_bound; |
| 65 const double default_upper_bound; | 65 const double default_upper_bound; |
| 66 const double indicator; | 66 const double indicator; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id); | 69 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 70 | 70 |
| 71 virtual const char* LayerTypeAsString() const OVERRIDE; | 71 virtual const char* LayerTypeAsString() const OVERRIDE; |
| 72 | 72 |
| 73 virtual void AsValueInto(base::DictionaryValue* dict) const OVERRIDE; |
| 74 |
| 73 void UpdateHudContents(); | 75 void UpdateHudContents(); |
| 74 void DrawHudContents(SkCanvas* canvas) const; | 76 void DrawHudContents(SkCanvas* canvas) const; |
| 75 | 77 |
| 76 void DrawText(SkCanvas* canvas, | 78 void DrawText(SkCanvas* canvas, |
| 77 SkPaint* paint, | 79 SkPaint* paint, |
| 78 const std::string& text, | 80 const std::string& text, |
| 79 SkPaint::Align align, | 81 SkPaint::Align align, |
| 80 int size, | 82 int size, |
| 81 int x, | 83 int x, |
| 82 int y) const; | 84 int y) const; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 MemoryHistory::Entry memory_entry_; | 121 MemoryHistory::Entry memory_entry_; |
| 120 | 122 |
| 121 base::TimeTicks time_of_last_graph_update_; | 123 base::TimeTicks time_of_last_graph_update_; |
| 122 | 124 |
| 123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 125 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 } // namespace cc | 128 } // namespace cc |
| 127 | 129 |
| 128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 130 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |