| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 bool WillDraw(DrawMode draw_mode, | 39 bool WillDraw(DrawMode draw_mode, |
| 40 ResourceProvider* resource_provider) override; | 40 ResourceProvider* resource_provider) override; |
| 41 void AppendQuads(RenderPass* render_pass, | 41 void AppendQuads(RenderPass* render_pass, |
| 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 void ReleaseResources() override; | 46 void ReleaseResources() override; |
| 47 | 47 |
| 48 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
| 49 |
| 48 bool IsAnimatingHUDContents() const { return fade_step_ > 0; } | 50 bool IsAnimatingHUDContents() const { return fade_step_ > 0; } |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 class Graph { | 53 class Graph { |
| 52 public: | 54 public: |
| 53 Graph(double indicator_value, double start_upper_bound); | 55 Graph(double indicator_value, double start_upper_bound); |
| 54 | 56 |
| 55 // Eases the upper bound, which limits what is currently visible in the | 57 // 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 | 58 // graph, so that the graph always scales to either it's max or |
| 57 // default_upper_bound. | 59 // default_upper_bound. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 std::vector<DebugRect> paint_rects_; | 141 std::vector<DebugRect> paint_rects_; |
| 140 | 142 |
| 141 base::TimeTicks time_of_last_graph_update_; | 143 base::TimeTicks time_of_last_graph_update_; |
| 142 | 144 |
| 143 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 145 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 } // namespace cc | 148 } // namespace cc |
| 147 | 149 |
| 148 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 150 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |