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_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
441 | 441 |
442 // Note this rect is in layer space (not content space). | 442 // Note this rect is in layer space (not content space). |
443 void SetUpdateRect(const gfx::RectF& update_rect); | 443 void SetUpdateRect(const gfx::RectF& update_rect); |
444 | 444 |
445 const gfx::RectF& update_rect() const { return update_rect_; } | 445 const gfx::RectF& update_rect() const { return update_rect_; } |
446 | 446 |
447 virtual base::DictionaryValue* LayerTreeAsJson() const; | 447 virtual base::DictionaryValue* LayerTreeAsJson() const; |
448 | 448 |
449 void SetStackingOrderChanged(bool stacking_order_changed); | 449 void SetStackingOrderChanged(bool stacking_order_changed); |
450 | 450 |
451 bool LayerPropertyChanged() const { | 451 bool LayerPropertyChanged() const { return layer_property_changed_; } |
caseq
2014/03/05 13:20:59
Is this a related change?
malch
2014/03/05 14:43:26
Done.
| |
452 return layer_property_changed_ || LayerIsAlwaysDamaged(); | |
453 } | |
454 | 452 |
455 void ResetAllChangeTrackingForSubtree(); | 453 void ResetAllChangeTrackingForSubtree(); |
456 | 454 |
457 virtual bool LayerIsAlwaysDamaged() const; | 455 virtual bool LayerIsAlwaysDamaged() const; |
458 | 456 |
459 LayerAnimationController* layer_animation_controller() { | 457 LayerAnimationController* layer_animation_controller() { |
460 return layer_animation_controller_.get(); | 458 return layer_animation_controller_.get(); |
461 } | 459 } |
462 | 460 |
463 const LayerAnimationController* layer_animation_controller() const { | 461 const LayerAnimationController* layer_animation_controller() const { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
660 DrawProperties<LayerImpl> draw_properties_; | 658 DrawProperties<LayerImpl> draw_properties_; |
661 | 659 |
662 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 660 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
663 | 661 |
664 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 662 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
665 }; | 663 }; |
666 | 664 |
667 } // namespace cc | 665 } // namespace cc |
668 | 666 |
669 #endif // CC_LAYERS_LAYER_IMPL_H_ | 667 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |