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

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: removed hasFontAtlas methods, put DCHECKs in HUDLayerImpl 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_impl.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 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(TextureUpdateQueue&, const OcclusionTracker*, RenderingS tats&) OVERRIDE; 19 virtual void update(TextureUpdateQueue&, const OcclusionTracker*, RenderingS tats&) 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
OLDNEW
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/heads_up_display_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698