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 "CCFontAtlas.h" | 8 #include "CCFontAtlas.h" |
9 #include "IntSize.h" | 9 #include "IntSize.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "cc/layer.h" | 11 #include "cc/layer.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 class HeadsUpDisplayLayerChromium : public LayerChromium { | 15 class HeadsUpDisplayLayerChromium : public LayerChromium { |
16 public: | 16 public: |
17 static scoped_refptr<HeadsUpDisplayLayerChromium> create(); | 17 static scoped_refptr<HeadsUpDisplayLayerChromium> create(); |
18 | 18 |
19 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend
eringStats&) OVERRIDE; | 19 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend
eringStats&) OVERRIDE; |
20 virtual bool drawsContent() const OVERRIDE; | 20 virtual bool drawsContent() const OVERRIDE; |
21 | 21 |
22 void setFontAtlas(scoped_ptr<CCFontAtlas>); | 22 void setFontAtlas(scoped_ptr<CCFontAtlas>); |
| 23 void setShowFPSCounter(bool); |
23 | 24 |
24 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 25 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
25 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; | 26 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; |
26 | 27 |
27 protected: | 28 protected: |
28 HeadsUpDisplayLayerChromium(); | 29 HeadsUpDisplayLayerChromium(); |
29 | 30 |
30 private: | 31 private: |
31 virtual ~HeadsUpDisplayLayerChromium(); | 32 virtual ~HeadsUpDisplayLayerChromium(); |
32 | 33 |
33 scoped_ptr<CCFontAtlas> m_fontAtlas; | 34 scoped_ptr<CCFontAtlas> m_fontAtlas; |
| 35 bool m_showFPSCounter; |
34 }; | 36 }; |
35 | 37 |
36 } // namespace cc | 38 } // namespace cc |
37 | 39 |
38 #endif | 40 #endif |
OLD | NEW |