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

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: rebase 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
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
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 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 15 matching lines...) Expand all
26 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl { 26 class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
27 public: 27 public:
28 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i nt id) 28 static scoped_ptr<HeadsUpDisplayLayerImpl> create(LayerTreeImpl* treeImpl, i nt id)
29 { 29 {
30 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id)); 30 return make_scoped_ptr(new HeadsUpDisplayLayerImpl(treeImpl, id));
31 } 31 }
32 virtual ~HeadsUpDisplayLayerImpl(); 32 virtual ~HeadsUpDisplayLayerImpl();
33 33
34 void setFontAtlas(scoped_ptr<FontAtlas>); 34 void setFontAtlas(scoped_ptr<FontAtlas>);
35 35
36 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE;
37 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
38
36 virtual void willDraw(ResourceProvider*) OVERRIDE; 39 virtual void willDraw(ResourceProvider*) OVERRIDE;
37 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 40 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
38 void updateHudTexture(ResourceProvider*); 41 void updateHudTexture(ResourceProvider*);
39 virtual void didDraw(ResourceProvider*) OVERRIDE; 42 virtual void didDraw(ResourceProvider*) OVERRIDE;
40 43
41 virtual void didLoseOutputSurface() OVERRIDE; 44 virtual void didLoseOutputSurface() OVERRIDE;
42 45
43 virtual bool layerIsAlwaysDamaged() const OVERRIDE; 46 virtual bool layerIsAlwaysDamaged() const OVERRIDE;
44 47
45 private: 48 private:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 85
83 Graph m_fpsGraph; 86 Graph m_fpsGraph;
84 Graph m_paintTimeGraph; 87 Graph m_paintTimeGraph;
85 88
86 base::TimeTicks m_timeOfLastGraphUpdate; 89 base::TimeTicks m_timeOfLastGraphUpdate;
87 }; 90 };
88 91
89 } // namespace cc 92 } // namespace cc
90 93
91 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 94 #endif // CC_HEADS_UP_DISPLAY_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698