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_H_ | 5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ |
6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ | 6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
10 #include "cc/layers/contents_scaling_layer.h" | 12 #include "cc/layers/contents_scaling_layer.h" |
11 | 13 |
12 namespace cc { | 14 namespace cc { |
13 | 15 |
14 class CC_EXPORT HeadsUpDisplayLayer : public ContentsScalingLayer { | 16 class CC_EXPORT HeadsUpDisplayLayer : public ContentsScalingLayer { |
15 public: | 17 public: |
16 static scoped_refptr<HeadsUpDisplayLayer> Create(); | 18 static scoped_refptr<HeadsUpDisplayLayer> Create(); |
17 | 19 |
18 void PrepareForCalculateDrawProperties( | 20 void PrepareForCalculateDrawProperties( |
19 gfx::Size device_viewport, float device_scale_factor); | 21 gfx::Size device_viewport, float device_scale_factor); |
20 | 22 |
21 virtual bool DrawsContent() const OVERRIDE; | 23 virtual bool DrawsContent() const OVERRIDE; |
22 | 24 |
23 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
24 OVERRIDE; | 26 OVERRIDE; |
25 | 27 |
| 28 virtual std::string DebugName() OVERRIDE; |
| 29 |
26 protected: | 30 protected: |
27 HeadsUpDisplayLayer(); | 31 HeadsUpDisplayLayer(); |
28 | 32 |
29 private: | 33 private: |
30 virtual ~HeadsUpDisplayLayer(); | 34 virtual ~HeadsUpDisplayLayer(); |
31 | 35 |
32 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayer); | 36 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayer); |
33 }; | 37 }; |
34 | 38 |
35 } // namespace cc | 39 } // namespace cc |
36 | 40 |
37 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ | 41 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ |
OLD | NEW |