Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: cc/trees/property_tree.h

Issue 2117853004: cc: Compute sublayer scale from effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "comments" Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 struct CC_EXPORT EffectNodeData { 267 struct CC_EXPORT EffectNodeData {
268 EffectNodeData(); 268 EffectNodeData();
269 EffectNodeData(const EffectNodeData& other); 269 EffectNodeData(const EffectNodeData& other);
270 270
271 float opacity; 271 float opacity;
272 float screen_space_opacity; 272 float screen_space_opacity;
273 273
274 FilterOperations background_filters; 274 FilterOperations background_filters;
275 275
276 gfx::Vector2dF sublayer_scale;
277
276 bool has_render_surface; 278 bool has_render_surface;
277 RenderSurfaceImpl* render_surface; 279 RenderSurfaceImpl* render_surface;
278 bool has_copy_request; 280 bool has_copy_request;
279 bool hidden_by_backface_visibility; 281 bool hidden_by_backface_visibility;
280 bool double_sided; 282 bool double_sided;
281 bool is_drawn; 283 bool is_drawn;
282 // TODO(jaydasika) : Delete this after implementation of 284 // TODO(jaydasika) : Delete this after implementation of
283 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843) 285 // SetHideLayerAndSubtree is cleaned up. (crbug.com/595843)
284 bool subtree_hidden; 286 bool subtree_hidden;
285 bool has_potential_opacity_animation; 287 bool has_potential_opacity_animation;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 EffectTree(); 599 EffectTree();
598 ~EffectTree(); 600 ~EffectTree();
599 601
600 EffectTree& operator=(const EffectTree& from); 602 EffectTree& operator=(const EffectTree& from);
601 bool operator==(const EffectTree& other) const; 603 bool operator==(const EffectTree& other) const;
602 604
603 void clear(); 605 void clear();
604 606
605 float EffectiveOpacity(const EffectNode* node) const; 607 float EffectiveOpacity(const EffectNode* node) const;
606 608
609 void UpdateSublayerScale(EffectNode* node);
610
607 void UpdateEffects(int id); 611 void UpdateEffects(int id);
608 612
609 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); 613 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node);
610 614
611 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); 615 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request);
612 void PushCopyRequestsTo(EffectTree* other_tree); 616 void PushCopyRequestsTo(EffectTree* other_tree);
613 void TakeCopyRequestsAndTransformToSurface( 617 void TakeCopyRequestsAndTransformToSurface(
614 int node_id, 618 int node_id,
615 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); 619 std::vector<std::unique_ptr<CopyOutputRequest>>* requests);
616 bool HasCopyRequests() const; 620 bool HasCopyRequests() const;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 gfx::Vector2dF inner_viewport_container_bounds_delta_; 843 gfx::Vector2dF inner_viewport_container_bounds_delta_;
840 gfx::Vector2dF outer_viewport_container_bounds_delta_; 844 gfx::Vector2dF outer_viewport_container_bounds_delta_;
841 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 845 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
842 846
843 PropertyTreesCachedData cached_data_; 847 PropertyTreesCachedData cached_data_;
844 }; 848 };
845 849
846 } // namespace cc 850 } // namespace cc
847 851
848 #endif // CC_TREES_PROPERTY_TREE_H_ 852 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698