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_LAYERS_TILED_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_TILED_LAYER_IMPL_H_ |
6 #define CC_LAYERS_TILED_LAYER_IMPL_H_ | 6 #define CC_LAYERS_TILED_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 new TiledLayerImpl(tree_impl, id, synced_scroll_offset)); | 29 new TiledLayerImpl(tree_impl, id, synced_scroll_offset)); |
30 } | 30 } |
31 ~TiledLayerImpl() override; | 31 ~TiledLayerImpl() override; |
32 | 32 |
33 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 33 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
34 void PushPropertiesTo(LayerImpl* layer) override; | 34 void PushPropertiesTo(LayerImpl* layer) override; |
35 | 35 |
36 bool WillDraw(DrawMode draw_mode, | 36 bool WillDraw(DrawMode draw_mode, |
37 ResourceProvider* resource_provider) override; | 37 ResourceProvider* resource_provider) override; |
38 void AppendQuads(RenderPass* render_pass, | 38 void AppendQuads(RenderPass* render_pass, |
39 const Occlusion& occlusion_in_content_space, | |
40 AppendQuadsData* append_quads_data) override; | 39 AppendQuadsData* append_quads_data) override; |
41 | 40 |
42 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 41 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
43 gfx::Size* resource_size) const override; | 42 gfx::Size* resource_size) const override; |
44 | 43 |
45 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } | 44 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } |
46 void SetTilingData(const LayerTilingData& tiler); | 45 void SetTilingData(const LayerTilingData& tiler); |
47 void PushTileProperties(int i, | 46 void PushTileProperties(int i, |
48 int j, | 47 int j, |
49 ResourceProvider::ResourceId resource, | 48 ResourceProvider::ResourceId resource, |
(...skipping 29 matching lines...) Expand all Loading... |
79 bool skips_draw_; | 78 bool skips_draw_; |
80 | 79 |
81 scoped_ptr<LayerTilingData> tiler_; | 80 scoped_ptr<LayerTilingData> tiler_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); | 82 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); |
84 }; | 83 }; |
85 | 84 |
86 } // namespace cc | 85 } // namespace cc |
87 | 86 |
88 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ | 87 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ |
OLD | NEW |