| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
| 6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 bool operator==(const EffectTree& other) const; | 324 bool operator==(const EffectTree& other) const; |
| 325 | 325 |
| 326 static const int kContentsRootNodeId = 1; | 326 static const int kContentsRootNodeId = 1; |
| 327 | 327 |
| 328 void clear(); | 328 void clear(); |
| 329 | 329 |
| 330 float EffectiveOpacity(const EffectNode* node) const; | 330 float EffectiveOpacity(const EffectNode* node) const; |
| 331 | 331 |
| 332 void UpdateSurfaceContentsScale(EffectNode* node); | 332 void UpdateSurfaceContentsScale(EffectNode* node); |
| 333 | 333 |
| 334 void OnOpacityAnimated(float opacity, int id, LayerTreeImpl* layer_tree_impl); |
| 335 |
| 334 void UpdateEffects(int id); | 336 void UpdateEffects(int id); |
| 335 | 337 |
| 336 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 338 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
| 337 | 339 |
| 338 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); | 340 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); |
| 339 void PushCopyRequestsTo(EffectTree* other_tree); | 341 void PushCopyRequestsTo(EffectTree* other_tree); |
| 340 void TakeCopyRequestsAndTransformToSurface( | 342 void TakeCopyRequestsAndTransformToSurface( |
| 341 int node_id, | 343 int node_id, |
| 342 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); | 344 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); |
| 343 bool HasCopyRequests() const; | 345 bool HasCopyRequests() const; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 615 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 614 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 616 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 615 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 617 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 616 | 618 |
| 617 PropertyTreesCachedData cached_data_; | 619 PropertyTreesCachedData cached_data_; |
| 618 }; | 620 }; |
| 619 | 621 |
| 620 } // namespace cc | 622 } // namespace cc |
| 621 | 623 |
| 622 #endif // CC_TREES_PROPERTY_TREE_H_ | 624 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |