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

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

Issue 2612883002: Rename cc property tree node owner_id to owning_layer_id. (Closed)
Patch Set: Created 3 years, 11 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/scroll_node.cc ('k') | cc/trees/transform_node.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TRANSFORM_NODE_H_ 5 #ifndef CC_TREES_TRANSFORM_NODE_H_
6 #define CC_TREES_TRANSFORM_NODE_H_ 6 #define CC_TREES_TRANSFORM_NODE_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "ui/gfx/geometry/point_f.h" 9 #include "ui/gfx/geometry/point_f.h"
10 #include "ui/gfx/geometry/scroll_offset.h" 10 #include "ui/gfx/geometry/scroll_offset.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 12
13 namespace base { 13 namespace base {
14 namespace trace_event { 14 namespace trace_event {
15 class TracedValue; 15 class TracedValue;
16 } // namespace trace_event 16 } // namespace trace_event
17 } // namespace base 17 } // namespace base
18 18
19 namespace cc { 19 namespace cc {
20 20
21 struct CC_EXPORT TransformNode { 21 struct CC_EXPORT TransformNode {
22 TransformNode(); 22 TransformNode();
23 TransformNode(const TransformNode&); 23 TransformNode(const TransformNode&);
24 24
25 // The node index of this node in the transform tree node vector.
25 int id; 26 int id;
27 // The node index of the parent node in the transform tree node vector.
26 int parent_id; 28 int parent_id;
27 int owner_id; 29 // The layer id of the layer that owns this node.
30 int owning_layer_id;
28 31
29 // The local transform information is combined to form to_parent (ignoring 32 // The local transform information is combined to form to_parent (ignoring
30 // snapping) as follows: 33 // snapping) as follows:
31 // 34 //
32 // to_parent = M_post_local * T_scroll * M_local * M_pre_local. 35 // to_parent = M_post_local * T_scroll * M_local * M_pre_local.
33 // 36 //
34 // The pre/post may seem odd when read LTR, but we multiply our points from 37 // The pre/post may seem odd when read LTR, but we multiply our points from
35 // the right, so the pre_local matrix affects the result "first". This lines 38 // the right, so the pre_local matrix affects the result "first". This lines
36 // up with the notions of pre/post used in skia and gfx::Transform. 39 // up with the notions of pre/post used in skia and gfx::Transform.
37 // 40 //
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 int content_target_id; 154 int content_target_id;
152 155
153 bool is_showing_backface : 1; 156 bool is_showing_backface : 1;
154 157
155 bool operator==(const TransformCachedNodeData& other) const; 158 bool operator==(const TransformCachedNodeData& other) const;
156 }; 159 };
157 160
158 } // namespace cc 161 } // namespace cc
159 162
160 #endif // CC_TREES_TRANSFORM_NODE_H_ 163 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/scroll_node.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698