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

Side by Side Diff: cc/tiled_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/texture_layer_impl.cc ('k') | cc/tiled_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TILED_LAYER_IMPL_H_ 5 #ifndef CC_TILED_LAYER_IMPL_H_
6 #define CC_TILED_LAYER_IMPL_H_ 6 #define CC_TILED_LAYER_IMPL_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class LayerTilingData; 13 class LayerTilingData;
14 class DrawableTile; 14 class DrawableTile;
15 15
16 class CC_EXPORT TiledLayerImpl : public LayerImpl { 16 class CC_EXPORT TiledLayerImpl : public LayerImpl {
17 public: 17 public:
18 static scoped_ptr<TiledLayerImpl> create(LayerTreeImpl* treeImpl, int id) 18 static scoped_ptr<TiledLayerImpl> create(LayerTreeImpl* treeImpl, int id)
19 { 19 {
20 return make_scoped_ptr(new TiledLayerImpl(treeImpl, id)); 20 return make_scoped_ptr(new TiledLayerImpl(treeImpl, id));
21 } 21 }
22 virtual ~TiledLayerImpl(); 22 virtual ~TiledLayerImpl();
23 23
24 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl*) OVERRIDE;
25 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
26
24 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; 27 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
25 28
26 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; 29 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
27 30
28 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; 31 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
29 32
30 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; } 33 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; }
31 void setTilingData(const LayerTilingData& tiler); 34 void setTilingData(const LayerTilingData& tiler);
32 void pushTileProperties(int, int, ResourceProvider::ResourceId, const gfx::R ect& opaqueRect, bool contentsSwizzled); 35 void pushTileProperties(int, int, ResourceProvider::ResourceId, const gfx::R ect& opaqueRect, bool contentsSwizzled);
33 void pushInvalidTile(int, int); 36 void pushInvalidTile(int, int);
(...skipping 17 matching lines...) Expand all
51 DrawableTile* createTile(int, int); 54 DrawableTile* createTile(int, int);
52 55
53 bool m_skipsDraw; 56 bool m_skipsDraw;
54 57
55 scoped_ptr<LayerTilingData> m_tiler; 58 scoped_ptr<LayerTilingData> m_tiler;
56 }; 59 };
57 60
58 } 61 }
59 62
60 #endif // CC_TILED_LAYER_IMPL_H_ 63 #endif // CC_TILED_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/texture_layer_impl.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698