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

Side by Side Diff: cc/heads_up_display_layer_impl.h

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
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 CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 5 #ifndef CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_
6 #define CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 6 #define CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 14 matching lines...) Expand all
25 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { 25 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
26 public: 26 public:
27 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i nt id) 27 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i nt id)
28 { 28 {
29 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id)); 29 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id));
30 } 30 }
31 virtual ~HeadsUpDisplayLayerImpl(); 31 virtual ~HeadsUpDisplayLayerImpl();
32 32
33 void setFontAtlas(scoped_ptr<FontAtlas>); 33 void setFontAtlas(scoped_ptr<FontAtlas>);
34 34
35 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE;
36 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
37
35 virtual void willDraw(ResourceProvider*) OVERRIDE; 38 virtual void willDraw(ResourceProvider*) OVERRIDE;
36 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 39 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
37 void updateHudTexture(ResourceProvider*); 40 void updateHudTexture(ResourceProvider*);
38 virtual void didDraw(ResourceProvider*) OVERRIDE; 41 virtual void didDraw(ResourceProvider*) OVERRIDE;
39 42
40 virtual void didLoseOutputSurface() OVERRIDE; 43 virtual void didLoseOutputSurface() OVERRIDE;
41 44
42 virtual bool layerIsAlwaysDamaged() const OVERRIDE; 45 virtual bool layerIsAlwaysDamaged() const OVERRIDE;
43 46
44 private: 47 private:
(...skipping 14 matching lines...) Expand all
59 double m_averageFPS; 62 double m_averageFPS;
60 double m_minFPS; 63 double m_minFPS;
61 double m_maxFPS; 64 double m_maxFPS;
62 65
63 base::TimeTicks textUpdateTime; 66 base::TimeTicks textUpdateTime;
64 }; 67 };
65 68
66 } // namespace cc 69 } // namespace cc
67 70
68 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 71 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/heads_up_display_layer_impl.cc » ('j') | cc/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698