| 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 14 matching lines...) Expand all Loading... |
| 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
| 26 override; | 26 override; |
| 27 virtual void PushPropertiesTo(LayerImpl* layer) override; | 27 virtual void PushPropertiesTo(LayerImpl* layer) override; |
| 28 | 28 |
| 29 virtual bool WillDraw(DrawMode draw_mode, | 29 virtual bool WillDraw(DrawMode draw_mode, |
| 30 ResourceProvider* resource_provider) override; | 30 ResourceProvider* resource_provider) override; |
| 31 virtual void AppendQuads(RenderPass* render_pass, | 31 virtual void AppendQuads(RenderPass* render_pass, |
| 32 const Occlusion& occlusion_in_content_space, | 32 const Occlusion& occlusion_in_content_space, |
| 33 AppendQuadsData* append_quads_data) override; | 33 AppendQuadsData* append_quads_data) override; |
| 34 | 34 |
| 35 virtual ResourceProvider::ResourceId ContentsResourceId() const override; | 35 virtual void ContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 36 gfx::Size* resource_size) const override; |
| 36 | 37 |
| 37 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } | 38 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } |
| 38 void SetTilingData(const LayerTilingData& tiler); | 39 void SetTilingData(const LayerTilingData& tiler); |
| 39 void PushTileProperties(int i, | 40 void PushTileProperties(int i, |
| 40 int j, | 41 int j, |
| 41 ResourceProvider::ResourceId resource, | 42 ResourceProvider::ResourceId resource, |
| 42 bool contents_swizzled); | 43 bool contents_swizzled); |
| 43 void PushInvalidTile(int i, int j); | 44 void PushInvalidTile(int i, int j); |
| 44 | 45 |
| 45 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; | 46 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 68 bool skips_draw_; | 69 bool skips_draw_; |
| 69 | 70 |
| 70 scoped_ptr<LayerTilingData> tiler_; | 71 scoped_ptr<LayerTilingData> tiler_; |
| 71 | 72 |
| 72 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); | 73 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace cc | 76 } // namespace cc |
| 76 | 77 |
| 77 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ | 78 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ |
| OLD | NEW |