| 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 25 matching lines...) Expand all Loading... |
| 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 bool WillDraw(DrawMode draw_mode, | 39 virtual bool WillDraw(DrawMode draw_mode, |
| 40 ResourceProvider* resource_provider) OVERRIDE; | 40 ResourceProvider* resource_provider) OVERRIDE; |
| 41 virtual void AppendQuads(QuadSink* quad_sink, | 41 virtual void AppendQuads(QuadSink* quad_sink, |
| 42 AppendQuadsData* append_quads_data) OVERRIDE; | 42 AppendQuadsData* append_quads_data) OVERRIDE; |
| 43 void UpdateHudTexture(DrawMode draw_mode, | 43 void UpdateHudTexture(DrawMode draw_mode, |
| 44 ResourceProvider* resource_provider); | 44 ResourceProvider* resource_provider); |
| 45 | 45 |
| 46 virtual void DidLoseOutputSurface() OVERRIDE; | 46 virtual void ReleaseResources() OVERRIDE; |
| 47 | 47 |
| 48 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; | 48 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 class Graph { | 51 class Graph { |
| 52 public: | 52 public: |
| 53 Graph(double indicator_value, double start_upper_bound); | 53 Graph(double indicator_value, double start_upper_bound); |
| 54 | 54 |
| 55 // Eases the upper bound, which limits what is currently visible in the | 55 // Eases the upper bound, which limits what is currently visible in the |
| 56 // graph, so that the graph always scales to either it's max or | 56 // graph, so that the graph always scales to either it's max or |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 MemoryHistory::Entry memory_entry_; | 119 MemoryHistory::Entry memory_entry_; |
| 120 | 120 |
| 121 base::TimeTicks time_of_last_graph_update_; | 121 base::TimeTicks time_of_last_graph_update_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace cc | 126 } // namespace cc |
| 127 | 127 |
| 128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |