OLD | NEW |
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 #include <set> | 5 #include <set> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 #include "cc/trees/property_tree.h" | 10 #include "cc/trees/property_tree.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 | 101 |
102 ClipNodeData::ClipNodeData() | 102 ClipNodeData::ClipNodeData() |
103 : transform_id(-1), | 103 : transform_id(-1), |
104 target_id(-1), | 104 target_id(-1), |
105 applies_local_clip(true), | 105 applies_local_clip(true), |
106 layer_clipping_uses_only_local_clip(false), | 106 layer_clipping_uses_only_local_clip(false), |
107 layer_visibility_uses_only_local_clip(false), | 107 layer_visibility_uses_only_local_clip(false), |
108 target_is_clipped(false), | 108 target_is_clipped(false), |
109 layers_are_clipped(false), | 109 layers_are_clipped(false), |
| 110 layers_are_clipped_when_surfaces_disabled(false), |
110 resets_clip(false) {} | 111 resets_clip(false) {} |
111 | 112 |
112 EffectNodeData::EffectNodeData() | 113 EffectNodeData::EffectNodeData() |
113 : opacity(1.f), | 114 : opacity(1.f), |
114 screen_space_opacity(1.f), | 115 screen_space_opacity(1.f), |
115 has_render_surface(false), | 116 has_render_surface(false), |
116 transform_id(0), | 117 transform_id(0), |
117 clip_id(0) {} | 118 clip_id(0) {} |
118 | 119 |
119 void TransformTree::clear() { | 120 void TransformTree::clear() { |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 node->data.clip = viewport_rect; | 619 node->data.clip = viewport_rect; |
619 set_needs_update(true); | 620 set_needs_update(true); |
620 } | 621 } |
621 | 622 |
622 gfx::RectF ClipTree::ViewportClip() { | 623 gfx::RectF ClipTree::ViewportClip() { |
623 const unsigned long min_size = 1; | 624 const unsigned long min_size = 1; |
624 DCHECK_GT(size(), min_size); | 625 DCHECK_GT(size(), min_size); |
625 return Node(1)->data.clip; | 626 return Node(1)->data.clip; |
626 } | 627 } |
627 | 628 |
628 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { | 629 PropertyTrees::PropertyTrees() |
629 } | 630 : needs_rebuild(true), |
| 631 non_root_surfaces_enabled(true), |
| 632 sequence_number(0) {} |
630 | 633 |
631 } // namespace cc | 634 } // namespace cc |
OLD | NEW |