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 HeadsUpDisplayLayerChromium_h | 5 #ifndef HeadsUpDisplayLayerChromium_h |
6 #define HeadsUpDisplayLayerChromium_h | 6 #define HeadsUpDisplayLayerChromium_h |
7 | 7 |
8 #include "IntSize.h" | 8 #include "IntSize.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/font_atlas.h" | 10 #include "cc/font_atlas.h" |
11 #include "cc/layer.h" | 11 #include "cc/layer.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 class HeadsUpDisplayLayer : public Layer { | 15 class HeadsUpDisplayLayer : public Layer { |
16 public: | 16 public: |
17 static scoped_refptr<HeadsUpDisplayLayer> create(); | 17 static scoped_refptr<HeadsUpDisplayLayer> create(); |
18 | 18 |
19 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; | 19 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; |
20 virtual bool drawsContent() const OVERRIDE; | 20 virtual bool drawsContent() const OVERRIDE; |
21 | 21 |
22 void setFontAtlas(scoped_ptr<FontAtlas>); | 22 void setFontAtlas(scoped_ptr<FontAtlas>); |
| 23 void setShowFPSCounter(bool); |
23 | 24 |
24 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; | 25 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
25 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 26 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
26 | 27 |
27 protected: | 28 protected: |
28 HeadsUpDisplayLayer(); | 29 HeadsUpDisplayLayer(); |
29 | 30 |
30 private: | 31 private: |
31 virtual ~HeadsUpDisplayLayer(); | 32 virtual ~HeadsUpDisplayLayer(); |
32 | 33 |
33 scoped_ptr<FontAtlas> m_fontAtlas; | 34 scoped_ptr<FontAtlas> m_fontAtlas; |
| 35 bool m_showFPSCounter; |
34 }; | 36 }; |
35 | 37 |
36 } // namespace cc | 38 } // namespace cc |
37 | 39 |
38 #endif | 40 #endif |
OLD | NEW |