| 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 18 matching lines...) Expand all Loading... |
| 29 public: | 29 public: |
| 30 static scoped_ptr<HeadsUpDisplayLayerImpl> Create(LayerTreeImpl* tree_impl, | 30 static scoped_ptr<HeadsUpDisplayLayerImpl> Create(LayerTreeImpl* tree_impl, |
| 31 int id) { | 31 int id) { |
| 32 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(tree_impl, id)); | 32 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(tree_impl, id)); |
| 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 bool WillDraw(DrawMode draw_mode, |
| 40 ResourceProvider* resource_provider) OVERRIDE; |
| 40 virtual void AppendQuads(QuadSink* quad_sink, | 41 virtual void AppendQuads(QuadSink* quad_sink, |
| 41 AppendQuadsData* append_quads_data) OVERRIDE; | 42 AppendQuadsData* append_quads_data) OVERRIDE; |
| 42 void UpdateHudTexture(ResourceProvider* resource_provider); | 43 void UpdateHudTexture(ResourceProvider* resource_provider); |
| 43 | 44 |
| 44 virtual void DidLoseOutputSurface() OVERRIDE; | 45 virtual void DidLoseOutputSurface() OVERRIDE; |
| 45 | 46 |
| 46 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; | 47 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 class Graph { | 50 class Graph { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 MemoryHistory::Entry memory_entry_; | 119 MemoryHistory::Entry memory_entry_; |
| 119 | 120 |
| 120 base::TimeTicks time_of_last_graph_update_; | 121 base::TimeTicks time_of_last_graph_update_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace cc | 126 } // namespace cc |
| 126 | 127 |
| 127 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |