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

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

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/property_tree.h ('k') | cc/trees/property_tree_builder.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 #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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 transform_origin.z()); 99 transform_origin.z());
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 target_is_clipped(false), 107 target_is_clipped(false),
108 layers_are_clipped(false), 108 layers_are_clipped(false),
109 layers_are_clipped_when_surfaces_disabled(false),
109 resets_clip(false) {} 110 resets_clip(false) {}
110 111
111 EffectNodeData::EffectNodeData() 112 EffectNodeData::EffectNodeData()
112 : opacity(1.f), 113 : opacity(1.f),
113 screen_space_opacity(1.f), 114 screen_space_opacity(1.f),
114 has_render_surface(false), 115 has_render_surface(false),
115 transform_id(0), 116 transform_id(0),
116 clip_id(0) {} 117 clip_id(0) {}
117 118
118 void TransformTree::clear() { 119 void TransformTree::clear() {
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 node->data.clip = viewport_rect; 618 node->data.clip = viewport_rect;
618 set_needs_update(true); 619 set_needs_update(true);
619 } 620 }
620 621
621 gfx::RectF ClipTree::ViewportClip() { 622 gfx::RectF ClipTree::ViewportClip() {
622 const unsigned long min_size = 1; 623 const unsigned long min_size = 1;
623 DCHECK_GT(size(), min_size); 624 DCHECK_GT(size(), min_size);
624 return Node(1)->data.clip; 625 return Node(1)->data.clip;
625 } 626 }
626 627
627 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { 628 PropertyTrees::PropertyTrees()
628 } 629 : needs_rebuild(true),
630 non_root_surfaces_enabled(true),
631 sequence_number(0) {}
629 632
630 } // namespace cc 633 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/property_tree.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698