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

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

Issue 2762043005: cc : Delete target id and content target id from transform nodes (Closed)
Patch Set: blink changes Created 3 years, 9 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/property_tree_unittest.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/cc_export.h" 8 #include "cc/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"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 }; 141 };
142 142
143 // TODO(sunxd): move this into PropertyTrees::cached_data_. 143 // TODO(sunxd): move this into PropertyTrees::cached_data_.
144 struct CC_EXPORT TransformCachedNodeData { 144 struct CC_EXPORT TransformCachedNodeData {
145 TransformCachedNodeData(); 145 TransformCachedNodeData();
146 TransformCachedNodeData(const TransformCachedNodeData& other); 146 TransformCachedNodeData(const TransformCachedNodeData& other);
147 ~TransformCachedNodeData(); 147 ~TransformCachedNodeData();
148 148
149 gfx::Transform from_screen; 149 gfx::Transform from_screen;
150 gfx::Transform to_screen; 150 gfx::Transform to_screen;
151 int target_id;
152 // This id is used for all content that draws into a render surface associated
153 // with this transform node.
154 int content_target_id;
155 151
156 bool is_showing_backface : 1; 152 bool is_showing_backface : 1;
157 153
158 bool operator==(const TransformCachedNodeData& other) const; 154 bool operator==(const TransformCachedNodeData& other) const;
159 }; 155 };
160 156
161 } // namespace cc 157 } // namespace cc
162 158
163 #endif // CC_TREES_TRANSFORM_NODE_H_ 159 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698