| OLD | NEW |
| 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_CLIP_NODE_H_ | 5 #ifndef CC_TREES_CLIP_NODE_H_ |
| 6 #define CC_TREES_CLIP_NODE_H_ | 6 #define CC_TREES_CLIP_NODE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // different target. Target information shall be removed from here. | 85 // different target. Target information shall be removed from here. |
| 86 int target_effect_id; | 86 int target_effect_id; |
| 87 | 87 |
| 88 // When true, |clip_in_target_space| does not include clips from ancestor | 88 // When true, |clip_in_target_space| does not include clips from ancestor |
| 89 // nodes. | 89 // nodes. |
| 90 bool layer_clipping_uses_only_local_clip : 1; | 90 bool layer_clipping_uses_only_local_clip : 1; |
| 91 | 91 |
| 92 // True if layers with this clip tree node need to be drawn with a clip | 92 // True if layers with this clip tree node need to be drawn with a clip |
| 93 // applied. | 93 // applied. |
| 94 bool layers_are_clipped : 1; | 94 bool layers_are_clipped : 1; |
| 95 bool layers_are_clipped_when_surfaces_disabled : 1; | |
| 96 | 95 |
| 97 // Nodes that correspond to unclipped surfaces disregard ancestor clips. | 96 // Nodes that correspond to unclipped surfaces disregard ancestor clips. |
| 98 bool resets_clip : 1; | 97 bool resets_clip : 1; |
| 99 | 98 |
| 100 bool operator==(const ClipNode& other) const; | 99 bool operator==(const ClipNode& other) const; |
| 101 | 100 |
| 102 void AsValueInto(base::trace_event::TracedValue* value) const; | 101 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace cc | 104 } // namespace cc |
| 106 | 105 |
| 107 #endif // CC_TREES_CLIP_NODE_H_ | 106 #endif // CC_TREES_CLIP_NODE_H_ |
| OLD | NEW |