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

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

Issue 2693703010: cc: Remove support for disabling non-root render surfaces. (Closed)
Patch Set: softwaredraw-remove-no-surfaces: rebase Created 3 years, 10 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/clip_node.cc ('k') | cc/trees/draw_property_utils.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_DRAW_PROPERTY_UTILS_H_ 5 #ifndef CC_TREES_DRAW_PROPERTY_UTILS_H_
6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ 6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/layer_collections.h" 9 #include "cc/layers/layer_collections.h"
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 namespace draw_property_utils { 28 namespace draw_property_utils {
29 29
30 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node, 30 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node,
31 gfx::Transform* transform); 31 gfx::Transform* transform);
32 32
33 void CC_EXPORT ConcatInverseSurfaceContentsScale(const EffectNode* effect_node, 33 void CC_EXPORT ConcatInverseSurfaceContentsScale(const EffectNode* effect_node,
34 gfx::Transform* transform); 34 gfx::Transform* transform);
35 // Computes combined clips for every node in |clip_tree|. This function requires 35 // Computes combined clips for every node in |clip_tree|. This function requires
36 // that |transform_tree| has been updated via |ComputeTransforms|. 36 // that |transform_tree| has been updated via |ComputeTransforms|.
37 void CC_EXPORT ComputeClips(PropertyTrees* property_trees, 37 void CC_EXPORT ComputeClips(PropertyTrees* property_trees);
38 bool non_root_surfaces_enabled);
39 38
40 // Computes combined (screen space) transforms for every node in the transform 39 // Computes combined (screen space) transforms for every node in the transform
41 // tree. This must be done prior to calling |ComputeClips|. 40 // tree. This must be done prior to calling |ComputeClips|.
42 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); 41 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
43 42
44 // Computes screen space opacity for every node in the opacity tree. 43 // Computes screen space opacity for every node in the opacity tree.
45 void CC_EXPORT ComputeEffects(EffectTree* effect_tree); 44 void CC_EXPORT ComputeEffects(EffectTree* effect_tree);
46 45
47 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects( 46 void CC_EXPORT BuildPropertyTreesAndComputeVisibleRects(
48 LayerImpl* root_layer, 47 LayerImpl* root_layer,
49 const LayerImpl* page_scale_layer, 48 const LayerImpl* page_scale_layer,
50 const LayerImpl* inner_viewport_scroll_layer, 49 const LayerImpl* inner_viewport_scroll_layer,
51 const LayerImpl* outer_viewport_scroll_layer, 50 const LayerImpl* outer_viewport_scroll_layer,
52 const LayerImpl* overscroll_elasticity_layer, 51 const LayerImpl* overscroll_elasticity_layer,
53 const gfx::Vector2dF& elastic_overscroll, 52 const gfx::Vector2dF& elastic_overscroll,
54 float page_scale_factor, 53 float page_scale_factor,
55 float device_scale_factor, 54 float device_scale_factor,
56 const gfx::Rect& viewport, 55 const gfx::Rect& viewport,
57 const gfx::Transform& device_transform, 56 const gfx::Transform& device_transform,
58 bool can_render_to_separate_surface,
59 PropertyTrees* property_trees, 57 PropertyTrees* property_trees,
60 LayerImplList* visible_layer_list); 58 LayerImplList* visible_layer_list);
61 59
62 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, 60 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees);
63 bool can_render_to_separate_surface);
64 61
65 void CC_EXPORT FindLayersThatNeedUpdates(LayerTreeHost* layer_tree_host, 62 void CC_EXPORT FindLayersThatNeedUpdates(LayerTreeHost* layer_tree_host,
66 const PropertyTrees* property_trees, 63 const PropertyTrees* property_trees,
67 LayerList* update_layer_list); 64 LayerList* update_layer_list);
68 65
69 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, 66 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer,
70 PropertyTrees* property_trees, 67 PropertyTrees* property_trees,
71 bool can_render_to_separate_surface,
72 LayerImplList* visible_layer_list); 68 LayerImplList* visible_layer_list);
73 69
74 gfx::Rect CC_EXPORT 70 gfx::Rect CC_EXPORT
75 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, 71 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees,
76 const LayerImpl* layer); 72 const LayerImpl* layer);
77 void CC_EXPORT 73 void CC_EXPORT
78 VerifyVisibleRectsCalculations(const LayerImplList& layer_list, 74 VerifyVisibleRectsCalculations(const LayerImplList& layer_list,
79 const PropertyTrees* property_trees); 75 const PropertyTrees* property_trees);
80 76
81 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer, 77 void CC_EXPORT ComputeLayerDrawProperties(LayerImpl* layer,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 127
132 void CC_EXPORT 128 void CC_EXPORT
133 UpdateElasticOverscroll(PropertyTrees* property_trees, 129 UpdateElasticOverscroll(PropertyTrees* property_trees,
134 const Layer* overscroll_elasticity_layer, 130 const Layer* overscroll_elasticity_layer,
135 const gfx::Vector2dF& elastic_overscroll); 131 const gfx::Vector2dF& elastic_overscroll);
136 132
137 } // namespace draw_property_utils 133 } // namespace draw_property_utils
138 } // namespace cc 134 } // namespace cc
139 135
140 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ 136 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
OLDNEW
« no previous file with comments | « cc/trees/clip_node.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698