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

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

Issue 2148383005: cc: Use sublayer scale from effect tree (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | cc/trees/draw_property_utils.cc » ('j') | cc/trees/draw_property_utils.cc » ('J')
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
11 namespace gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 class Transform; 13 class Transform;
14 class Vector2dF; 14 class Vector2dF;
15 } // namespace gfx 15 } // namespace gfx
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class ClipTree; 19 class ClipTree;
20 struct DrawProperties; 20 struct DrawProperties;
21 class Layer; 21 class Layer;
22 class LayerImpl; 22 class LayerImpl;
23 class LayerTreeHost; 23 class LayerTreeHost;
24 class RenderSurfaceImpl; 24 class RenderSurfaceImpl;
25 class EffectTree; 25 class EffectTree;
26 class TransformTree; 26 class TransformTree;
27 class PropertyTrees; 27 class PropertyTrees;
28 struct EffectNode;
28 29
29 namespace draw_property_utils { 30 namespace draw_property_utils {
30 31
31 void CC_EXPORT PostConcatSublayerScale(const int effect_node_id, 32 void CC_EXPORT PostConcatSublayerScale(const EffectNode* effect_node,
32 const EffectTree& effect_tree,
33 gfx::Transform* transform); 33 gfx::Transform* transform);
34 34
35 void CC_EXPORT ConcatInverseSublayerScale(const int effect_node_id, 35 void CC_EXPORT ConcatInverseSublayerScale(const EffectNode* effect_node,
36 const EffectTree& effect_tree,
37 gfx::Transform* transform); 36 gfx::Transform* transform);
38 // Computes combined clips for every node in |clip_tree|. This function requires 37 // Computes combined clips for every node in |clip_tree|. This function requires
39 // that |transform_tree| has been updated via |ComputeTransforms|. 38 // that |transform_tree| has been updated via |ComputeTransforms|.
40 void CC_EXPORT ComputeClips(ClipTree* clip_tree, 39 void CC_EXPORT ComputeClips(ClipTree* clip_tree,
41 const TransformTree& transform_tree, 40 const TransformTree& transform_tree,
42 bool non_root_surfaces_enabled); 41 bool non_root_surfaces_enabled);
43 42
44 // Computes combined (screen space) transforms for every node in the transform 43 // Computes combined (screen space) transforms for every node in the transform
45 // tree. This must be done prior to calling |ComputeClips|. 44 // tree. This must be done prior to calling |ComputeClips|.
46 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); 45 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 136
138 void CC_EXPORT 137 void CC_EXPORT
139 UpdateElasticOverscroll(PropertyTrees* property_trees, 138 UpdateElasticOverscroll(PropertyTrees* property_trees,
140 const Layer* overscroll_elasticity_layer, 139 const Layer* overscroll_elasticity_layer,
141 const gfx::Vector2dF& elastic_overscroll); 140 const gfx::Vector2dF& elastic_overscroll);
142 141
143 } // namespace draw_property_utils 142 } // namespace draw_property_utils
144 } // namespace cc 143 } // namespace cc
145 144
146 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ 145 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/draw_property_utils.cc » ('j') | cc/trees/draw_property_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698