| 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> |
| 11 #include <unordered_map> | 11 #include <unordered_map> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "cc/animation/element_id.h" | 14 #include "cc/animation/element_id.h" |
| 15 #include "cc/base/cc_export.h" | 15 #include "cc/base/cc_export.h" |
| 16 #include "cc/base/synced_property.h" | 16 #include "cc/base/synced_property.h" |
| 17 #include "cc/output/filter_operations.h" |
| 17 #include "ui/gfx/geometry/rect_f.h" | 18 #include "ui/gfx/geometry/rect_f.h" |
| 18 #include "ui/gfx/geometry/scroll_offset.h" | 19 #include "ui/gfx/geometry/scroll_offset.h" |
| 19 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 namespace trace_event { | 23 namespace trace_event { |
| 23 class TracedValue; | 24 class TracedValue; |
| 24 } | 25 } |
| 25 } | 26 } |
| 26 | 27 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 326 |
| 326 static const int kContentsRootNodeId = 1; | 327 static const int kContentsRootNodeId = 1; |
| 327 | 328 |
| 328 void clear(); | 329 void clear(); |
| 329 | 330 |
| 330 float EffectiveOpacity(const EffectNode* node) const; | 331 float EffectiveOpacity(const EffectNode* node) const; |
| 331 | 332 |
| 332 void UpdateSurfaceContentsScale(EffectNode* node); | 333 void UpdateSurfaceContentsScale(EffectNode* node); |
| 333 | 334 |
| 334 void OnOpacityAnimated(float opacity, int id, LayerTreeImpl* layer_tree_impl); | 335 void OnOpacityAnimated(float opacity, int id, LayerTreeImpl* layer_tree_impl); |
| 336 void OnFilterAnimated(const FilterOperations& filters, |
| 337 int id, |
| 338 LayerTreeImpl* layer_tree_impl); |
| 335 | 339 |
| 336 void UpdateEffects(int id); | 340 void UpdateEffects(int id); |
| 337 | 341 |
| 338 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 342 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
| 339 | 343 |
| 340 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); | 344 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); |
| 341 void PushCopyRequestsTo(EffectTree* other_tree); | 345 void PushCopyRequestsTo(EffectTree* other_tree); |
| 342 void TakeCopyRequestsAndTransformToSurface( | 346 void TakeCopyRequestsAndTransformToSurface( |
| 343 int node_id, | 347 int node_id, |
| 344 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); | 348 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 619 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 616 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 620 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 617 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 621 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 618 | 622 |
| 619 PropertyTreesCachedData cached_data_; | 623 PropertyTreesCachedData cached_data_; |
| 620 }; | 624 }; |
| 621 | 625 |
| 622 } // namespace cc | 626 } // namespace cc |
| 623 | 627 |
| 624 #endif // CC_TREES_PROPERTY_TREE_H_ | 628 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |