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

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

Issue 1252313004: Add ClipNode when Render Surface Inherits Clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments on patch 12 Created 5 years, 4 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/layer_tree_host_common_unittest.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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 typedef TreeNode<TransformNodeData> TransformNode; 133 typedef TreeNode<TransformNodeData> TransformNode;
134 134
135 struct CC_EXPORT ClipNodeData { 135 struct CC_EXPORT ClipNodeData {
136 ClipNodeData(); 136 ClipNodeData();
137 137
138 gfx::RectF clip; 138 gfx::RectF clip;
139 gfx::RectF combined_clip; 139 gfx::RectF combined_clip;
140 int transform_id; 140 int transform_id;
141 int target_id; 141 int target_id;
142 // This value is true for clip nodes created by layers that do not apply any
143 // clip themselves, but own a render surface that inherits the parent
144 // target space clip.
145 bool inherit_parent_target_space_clip;
142 }; 146 };
143 147
144 typedef TreeNode<ClipNodeData> ClipNode; 148 typedef TreeNode<ClipNodeData> ClipNode;
145 149
146 struct CC_EXPORT OpacityNodeData { 150 struct CC_EXPORT OpacityNodeData {
147 OpacityNodeData(); 151 OpacityNodeData();
148 152
149 float opacity; 153 float opacity;
150 float screen_space_opacity; 154 float screen_space_opacity;
151 }; 155 };
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 TransformTree transform_tree; 325 TransformTree transform_tree;
322 OpacityTree opacity_tree; 326 OpacityTree opacity_tree;
323 ClipTree clip_tree; 327 ClipTree clip_tree;
324 bool needs_rebuild; 328 bool needs_rebuild;
325 int sequence_number; 329 int sequence_number;
326 }; 330 };
327 331
328 } // namespace cc 332 } // namespace cc
329 333
330 #endif // CC_TREES_PROPERTY_TREE_H_ 334 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698