Chromium Code Reviews| 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 void BuildPropertyTreesForTesting(); | 225 void BuildPropertyTreesForTesting(); |
| 226 void IncrementRenderSurfaceListIdForTesting(); | 226 void IncrementRenderSurfaceListIdForTesting(); |
| 227 | 227 |
| 228 void set_needs_update_draw_properties() { | 228 void set_needs_update_draw_properties() { |
| 229 needs_update_draw_properties_ = true; | 229 needs_update_draw_properties_ = true; |
| 230 } | 230 } |
| 231 bool needs_update_draw_properties() const { | 231 bool needs_update_draw_properties() const { |
| 232 return needs_update_draw_properties_; | 232 return needs_update_draw_properties_; |
| 233 } | 233 } |
| 234 | 234 |
| 235 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 235 void set_needs_full_tree_sync(bool needs) { |
| 236 needs_full_tree_sync_ = needs; | |
| 237 if (needs) | |
| 238 property_trees_.needs_rebuild = true; | |
|
ajuma
2015/12/02 14:54:21
This will only actually trigger a rebuild in tests
weiliangc
2015/12/02 18:16:38
Sorry I think I left this in during one of my atte
| |
| 239 } | |
| 236 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 240 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 237 | 241 |
| 238 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 242 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
| 239 | 243 |
| 240 void set_has_ever_been_drawn(bool has_drawn) { | 244 void set_has_ever_been_drawn(bool has_drawn) { |
| 241 has_ever_been_drawn_ = has_drawn; | 245 has_ever_been_drawn_ = has_drawn; |
| 242 } | 246 } |
| 243 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 247 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 244 | 248 |
| 245 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); | 249 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 384 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; | 388 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; |
| 385 | 389 |
| 386 bool HasAnyAnimationTargetingProperty( | 390 bool HasAnyAnimationTargetingProperty( |
| 387 const LayerImpl* layer, | 391 const LayerImpl* layer, |
| 388 Animation::TargetProperty property) const; | 392 Animation::TargetProperty property) const; |
| 389 | 393 |
| 390 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 394 bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 391 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 395 bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 392 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; | 396 bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const; |
| 393 | 397 |
| 398 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | |
| 394 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; | 399 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; |
| 395 | 400 |
| 396 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; | 401 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; |
| 397 bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const; | 402 bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const; |
| 398 | 403 |
| 399 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; | 404 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 400 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; | 405 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 401 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; | 406 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; |
| 402 | 407 |
| 403 bool FilterAnimationBoundsForBox(const LayerImpl* layer, | 408 bool FilterAnimationBoundsForBox(const LayerImpl* layer, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 | 506 |
| 502 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 507 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 503 | 508 |
| 504 private: | 509 private: |
| 505 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 510 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 506 }; | 511 }; |
| 507 | 512 |
| 508 } // namespace cc | 513 } // namespace cc |
| 509 | 514 |
| 510 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 515 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |