| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 void SetNeedsCommit(); | 477 void SetNeedsCommit(); |
| 478 // Called when there's been a change in layer structure. Implies both | 478 // Called when there's been a change in layer structure. Implies both |
| 479 // SetNeedsUpdate and SetNeedsCommit, but not SetNeedsPushProperties. | 479 // SetNeedsUpdate and SetNeedsCommit, but not SetNeedsPushProperties. |
| 480 void SetNeedsFullTreeSync(); | 480 void SetNeedsFullTreeSync(); |
| 481 | 481 |
| 482 // Called when the next commit should wait until the pending tree is activated | 482 // Called when the next commit should wait until the pending tree is activated |
| 483 // before finishing the commit and unblocking the main thread. Used to ensure | 483 // before finishing the commit and unblocking the main thread. Used to ensure |
| 484 // unused resources on the impl thread are returned before commit completes. | 484 // unused resources on the impl thread are returned before commit completes. |
| 485 void SetNextCommitWaitsForActivation(); | 485 void SetNextCommitWaitsForActivation(); |
| 486 | 486 |
| 487 // Called when the blend mode or filters have been changed. | |
| 488 void SetNeedsFilterContextIfNeeded(); | |
| 489 | |
| 490 void AddDependentNeedsPushProperties(); | 487 void AddDependentNeedsPushProperties(); |
| 491 void RemoveDependentNeedsPushProperties(); | 488 void RemoveDependentNeedsPushProperties(); |
| 492 bool parent_should_know_need_push_properties() const { | 489 bool parent_should_know_need_push_properties() const { |
| 493 return needs_push_properties() || descendant_needs_push_properties(); | 490 return needs_push_properties() || descendant_needs_push_properties(); |
| 494 } | 491 } |
| 495 | 492 |
| 496 bool IsPropertyChangeAllowed() const; | 493 bool IsPropertyChangeAllowed() const; |
| 497 | 494 |
| 498 // If this layer has a scroll parent, it removes |this| from its list of | 495 // If this layer has a scroll parent, it removes |this| from its list of |
| 499 // scroll children. | 496 // scroll children. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 DrawProperties<Layer> draw_properties_; | 624 DrawProperties<Layer> draw_properties_; |
| 628 | 625 |
| 629 PaintProperties paint_properties_; | 626 PaintProperties paint_properties_; |
| 630 | 627 |
| 631 DISALLOW_COPY_AND_ASSIGN(Layer); | 628 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 632 }; | 629 }; |
| 633 | 630 |
| 634 } // namespace cc | 631 } // namespace cc |
| 635 | 632 |
| 636 #endif // CC_LAYERS_LAYER_H_ | 633 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |