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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 329 |
329 static const int kContentsRootNodeId = 1; | 330 static const int kContentsRootNodeId = 1; |
330 | 331 |
331 void clear(); | 332 void clear(); |
332 | 333 |
333 float EffectiveOpacity(const EffectNode* node) const; | 334 float EffectiveOpacity(const EffectNode* node) const; |
334 | 335 |
335 void UpdateSurfaceContentsScale(EffectNode* node); | 336 void UpdateSurfaceContentsScale(EffectNode* node); |
336 | 337 |
337 void OnOpacityAnimated(float opacity, int id, LayerTreeImpl* layer_tree_impl); | 338 void OnOpacityAnimated(float opacity, int id, LayerTreeImpl* layer_tree_impl); |
| 339 void OnFilterAnimated(const FilterOperations& filters, |
| 340 int id, |
| 341 LayerTreeImpl* layer_tree_impl); |
338 | 342 |
339 void UpdateEffects(int id); | 343 void UpdateEffects(int id); |
340 | 344 |
341 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 345 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
342 | 346 |
343 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); | 347 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); |
344 void PushCopyRequestsTo(EffectTree* other_tree); | 348 void PushCopyRequestsTo(EffectTree* other_tree); |
345 void TakeCopyRequestsAndTransformToSurface( | 349 void TakeCopyRequestsAndTransformToSurface( |
346 int node_id, | 350 int node_id, |
347 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); | 351 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 622 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
619 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 623 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
620 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 624 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
621 | 625 |
622 PropertyTreesCachedData cached_data_; | 626 PropertyTreesCachedData cached_data_; |
623 }; | 627 }; |
624 | 628 |
625 } // namespace cc | 629 } // namespace cc |
626 | 630 |
627 #endif // CC_TREES_PROPERTY_TREE_H_ | 631 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |