Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: cc/heads_up_display_layer.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added DCHECKs and moved hasFontAtlas into HUDLayer Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/heads_up_display_layer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 bool hasFontAtlas() const;
22 void setFontAtlas(scoped_ptr<CCFontAtlas>); 23 void setFontAtlas(scoped_ptr<CCFontAtlas>);
24 void setShowFPSCounter(bool);
23 25
24 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 26 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
25 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; 27 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
26 28
27 protected: 29 protected:
28 HeadsUpDisplayLayerChromium(); 30 HeadsUpDisplayLayerChromium();
29 31
30 private: 32 private:
31 virtual ~HeadsUpDisplayLayerChromium(); 33 virtual ~HeadsUpDisplayLayerChromium();
32 34
33 scoped_ptr<CCFontAtlas> m_fontAtlas; 35 scoped_ptr<CCFontAtlas> m_fontAtlas;
36 bool m_showFPSCounter;
37 bool m_hasFontAtlas;
34 }; 38 };
35 39
36 } // namespace cc 40 } // namespace cc
37 41
38 #endif 42 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/heads_up_display_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698