| 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 11 matching lines...) Expand all Loading... |
| 61 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); | 60 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 62 TiledLayerImpl( | 61 TiledLayerImpl( |
| 63 LayerTreeImpl* tree_impl, | 62 LayerTreeImpl* tree_impl, |
| 64 int id, | 63 int id, |
| 65 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); | 64 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); |
| 66 // Exposed for testing. | 65 // Exposed for testing. |
| 67 bool HasTileAt(int i, int j) const; | 66 bool HasTileAt(int i, int j) const; |
| 68 bool HasResourceIdForTileAt(int i, int j) const; | 67 bool HasResourceIdForTileAt(int i, int j) const; |
| 69 | 68 |
| 70 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 69 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
| 71 void AsValueInto(base::debug::TracedValue* dict) const override; | 70 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 const char* LayerTypeAsString() const override; | 73 const char* LayerTypeAsString() const override; |
| 75 | 74 |
| 76 DrawableTile* TileAt(int i, int j) const; | 75 DrawableTile* TileAt(int i, int j) const; |
| 77 DrawableTile* CreateTile(int i, int j); | 76 DrawableTile* CreateTile(int i, int j); |
| 78 | 77 |
| 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 |