OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 bool use_gpu_rasterization() const { | 135 bool use_gpu_rasterization() const { |
136 return layer_tree_impl()->use_gpu_rasterization(); | 136 return layer_tree_impl()->use_gpu_rasterization(); |
137 } | 137 } |
138 | 138 |
139 // Functions used by tile manager. | 139 // Functions used by tile manager. |
140 void DidUnregisterLayer(); | 140 void DidUnregisterLayer(); |
141 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } | 141 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } |
142 WhichTree GetTree() const; | 142 WhichTree GetTree() const; |
143 bool IsOnActiveOrPendingTree() const; | 143 bool IsOnActiveOrPendingTree() const; |
| 144 bool AllTilesRequiredForActivationAreReadyToDraw() const; |
144 | 145 |
145 protected: | 146 protected: |
146 friend class LayerRasterTileIterator; | 147 friend class LayerRasterTileIterator; |
147 | 148 |
148 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); | 149 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
149 PictureLayerTiling* AddTiling(float contents_scale); | 150 PictureLayerTiling* AddTiling(float contents_scale); |
150 void RemoveTiling(float contents_scale); | 151 void RemoveTiling(float contents_scale); |
151 void RemoveAllTilings(); | 152 void RemoveAllTilings(); |
152 void SyncFromActiveLayer(const PictureLayerImpl* other); | 153 void SyncFromActiveLayer(const PictureLayerImpl* other); |
153 void ManageTilings(bool animating_transform_to_screen, | 154 void ManageTilings(bool animating_transform_to_screen, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 gfx::Size viewport_size_for_tile_priority_; | 224 gfx::Size viewport_size_for_tile_priority_; |
224 gfx::Transform screen_space_transform_for_tile_priority_; | 225 gfx::Transform screen_space_transform_for_tile_priority_; |
225 | 226 |
226 friend class PictureLayer; | 227 friend class PictureLayer; |
227 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 228 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
228 }; | 229 }; |
229 | 230 |
230 } // namespace cc | 231 } // namespace cc |
231 | 232 |
232 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 233 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |