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 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 virtual ~HeadsUpDisplayLayerImpl(); | 34 virtual ~HeadsUpDisplayLayerImpl(); |
35 | 35 |
36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
37 OVERRIDE; | 37 OVERRIDE; |
38 | 38 |
39 virtual void WillDraw(ResourceProvider* resource_provider) OVERRIDE; | 39 virtual void WillDraw(ResourceProvider* resource_provider) OVERRIDE; |
40 virtual void AppendQuads(QuadSink* quad_sink, | 40 virtual void AppendQuads(QuadSink* quad_sink, |
41 AppendQuadsData* append_quads_data) OVERRIDE; | 41 AppendQuadsData* append_quads_data) OVERRIDE; |
42 void UpdateHudTexture(ResourceProvider* resource_provider); | 42 void UpdateHudTexture(ResourceProvider* resource_provider); |
43 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; | |
44 | 43 |
45 virtual void DidLoseOutputSurface() OVERRIDE; | 44 virtual void DidLoseOutputSurface() OVERRIDE; |
46 | 45 |
47 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; | 46 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; |
48 | 47 |
49 private: | 48 private: |
50 class Graph { | 49 class Graph { |
51 public: | 50 public: |
52 Graph(double indicator_value, double start_upper_bound); | 51 Graph(double indicator_value, double start_upper_bound); |
53 | 52 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 MemoryHistory::Entry memory_entry_; | 118 MemoryHistory::Entry memory_entry_; |
120 | 119 |
121 base::TimeTicks time_of_last_graph_update_; | 120 base::TimeTicks time_of_last_graph_update_; |
122 | 121 |
123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 122 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
124 }; | 123 }; |
125 | 124 |
126 } // namespace cc | 125 } // namespace cc |
127 | 126 |
128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 127 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
OLD | NEW |