| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |