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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); | 61 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); |
62 TiledLayerImpl( | 62 TiledLayerImpl( |
63 LayerTreeImpl* tree_impl, | 63 LayerTreeImpl* tree_impl, |
64 int id, | 64 int id, |
65 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); | 65 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); |
66 // Exposed for testing. | 66 // Exposed for testing. |
67 bool HasTileAt(int i, int j) const; | 67 bool HasTileAt(int i, int j) const; |
68 bool HasResourceIdForTileAt(int i, int j) const; | 68 bool HasResourceIdForTileAt(int i, int j) const; |
69 | 69 |
70 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 70 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
71 void AsValueInto(base::debug::TracedValue* dict) const override; | 71 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
72 | 72 |
73 private: | 73 private: |
74 const char* LayerTypeAsString() const override; | 74 const char* LayerTypeAsString() const override; |
75 | 75 |
76 DrawableTile* TileAt(int i, int j) const; | 76 DrawableTile* TileAt(int i, int j) const; |
77 DrawableTile* CreateTile(int i, int j); | 77 DrawableTile* CreateTile(int i, int j); |
78 | 78 |
79 bool skips_draw_; | 79 bool skips_draw_; |
80 | 80 |
81 scoped_ptr<LayerTilingData> tiler_; | 81 scoped_ptr<LayerTilingData> tiler_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); | 83 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace cc | 86 } // namespace cc |
87 | 87 |
88 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ | 88 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ |
OLD | NEW |