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

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

Issue 1387003002: cc: Make property trees support resourceless draw mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DontReparentUnclippedClipNodes
Patch Set: Rebased Created 5 years, 2 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // When true, |clip_in_target_space| does not include clips from ancestor 185 // When true, |clip_in_target_space| does not include clips from ancestor
186 // nodes. 186 // nodes.
187 bool layer_clipping_uses_only_local_clip : 1; 187 bool layer_clipping_uses_only_local_clip : 1;
188 188
189 // True if target surface needs to be drawn with a clip applied. 189 // True if target surface needs to be drawn with a clip applied.
190 bool target_is_clipped : 1; 190 bool target_is_clipped : 1;
191 191
192 // True if layers with this clip tree node need to be drawn with a clip 192 // True if layers with this clip tree node need to be drawn with a clip
193 // applied. 193 // applied.
194 bool layers_are_clipped : 1; 194 bool layers_are_clipped : 1;
195 bool layers_are_clipped_when_surfaces_disabled : 1;
195 196
196 // Nodes that correspond to unclipped surfaces disregard ancestor clips. 197 // Nodes that correspond to unclipped surfaces disregard ancestor clips.
197 bool resets_clip : 1; 198 bool resets_clip : 1;
198 }; 199 };
199 200
200 typedef TreeNode<ClipNodeData> ClipNode; 201 typedef TreeNode<ClipNodeData> ClipNode;
201 202
202 struct CC_EXPORT EffectNodeData { 203 struct CC_EXPORT EffectNodeData {
203 EffectNodeData(); 204 EffectNodeData();
204 205
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 }; 392 };
392 393
393 class CC_EXPORT PropertyTrees final { 394 class CC_EXPORT PropertyTrees final {
394 public: 395 public:
395 PropertyTrees(); 396 PropertyTrees();
396 397
397 TransformTree transform_tree; 398 TransformTree transform_tree;
398 EffectTree effect_tree; 399 EffectTree effect_tree;
399 ClipTree clip_tree; 400 ClipTree clip_tree;
400 bool needs_rebuild; 401 bool needs_rebuild;
402 bool non_root_surfaces_enabled;
401 int sequence_number; 403 int sequence_number;
402 }; 404 };
403 405
404 } // namespace cc 406 } // namespace cc
405 407
406 #endif // CC_TREES_PROPERTY_TREE_H_ 408 #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