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 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class ConvertableToTraceFormat; | 48 class ConvertableToTraceFormat; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 namespace cc { | 52 namespace cc { |
53 | 53 |
54 class Animation; | 54 class Animation; |
55 class AnimationDelegate; | 55 class AnimationDelegate; |
56 struct AnimationEvent; | 56 struct AnimationEvent; |
57 class CopyOutputRequest; | 57 class CopyOutputRequest; |
58 class LayerAnimationDelegate; | |
59 class LayerAnimationEventObserver; | 58 class LayerAnimationEventObserver; |
60 class LayerClient; | 59 class LayerClient; |
61 class LayerImpl; | 60 class LayerImpl; |
62 class LayerTreeHost; | 61 class LayerTreeHost; |
63 class LayerTreeHostCommon; | 62 class LayerTreeHostCommon; |
64 class LayerTreeImpl; | 63 class LayerTreeImpl; |
65 class PriorityCalculator; | 64 class PriorityCalculator; |
66 class RenderingStatsInstrumentation; | 65 class RenderingStatsInstrumentation; |
67 class ResourceUpdateQueue; | 66 class ResourceUpdateQueue; |
68 class ScrollbarLayerInterface; | 67 class ScrollbarLayerInterface; |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // These SetNeeds functions are in order of severity of update: | 539 // These SetNeeds functions are in order of severity of update: |
541 // | 540 // |
542 // Called when this layer has been modified in some way, but isn't sure | 541 // Called when this layer has been modified in some way, but isn't sure |
543 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers | 542 // that it needs a commit yet. It needs CalcDrawProperties and UpdateLayers |
544 // before it knows whether or not a commit is required. | 543 // before it knows whether or not a commit is required. |
545 void SetNeedsUpdate(); | 544 void SetNeedsUpdate(); |
546 // Called when a property has been modified in a way that the layer | 545 // Called when a property has been modified in a way that the layer |
547 // knows immediately that a commit is required. This implies SetNeedsUpdate | 546 // knows immediately that a commit is required. This implies SetNeedsUpdate |
548 // as well as SetNeedsPushProperties to push that property. | 547 // as well as SetNeedsPushProperties to push that property. |
549 void SetNeedsCommit(); | 548 void SetNeedsCommit(); |
| 549 // This is identical to SetNeedsCommit, but the former requests a rebuild of |
| 550 // the property trees. |
| 551 void SetNeedsCommitNoRebuild(); |
550 // Called when there's been a change in layer structure. Implies both | 552 // Called when there's been a change in layer structure. Implies both |
551 // SetNeedsUpdate and SetNeedsCommit, but not SetNeedsPushProperties. | 553 // SetNeedsUpdate and SetNeedsCommit, but not SetNeedsPushProperties. |
552 void SetNeedsFullTreeSync(); | 554 void SetNeedsFullTreeSync(); |
553 | 555 |
554 // Called when the next commit should wait until the pending tree is activated | 556 // Called when the next commit should wait until the pending tree is activated |
555 // before finishing the commit and unblocking the main thread. Used to ensure | 557 // before finishing the commit and unblocking the main thread. Used to ensure |
556 // unused resources on the impl thread are returned before commit completes. | 558 // unused resources on the impl thread are returned before commit completes. |
557 void SetNextCommitWaitsForActivation(); | 559 void SetNextCommitWaitsForActivation(); |
558 | 560 |
559 // Will recalculate whether the layer draws content and set draws_content_ | 561 // Will recalculate whether the layer draws content and set draws_content_ |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 | 730 |
729 std::vector<FrameTimingRequest> frame_timing_requests_; | 731 std::vector<FrameTimingRequest> frame_timing_requests_; |
730 bool frame_timing_requests_dirty_; | 732 bool frame_timing_requests_dirty_; |
731 | 733 |
732 DISALLOW_COPY_AND_ASSIGN(Layer); | 734 DISALLOW_COPY_AND_ASSIGN(Layer); |
733 }; | 735 }; |
734 | 736 |
735 } // namespace cc | 737 } // namespace cc |
736 | 738 |
737 #endif // CC_LAYERS_LAYER_H_ | 739 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |