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

Side by Side Diff: cc/layers/render_surface_impl.cc

Issue 2616353003: Clarify property tree id-to-index map names. (Closed)
Patch Set: Sync to head. Created 3 years, 11 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/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common_unittest.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/layers/render_surface_impl.h" 5 #include "cc/layers/render_surface_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return owning_layer_->transform_tree_index(); 155 return owning_layer_->transform_tree_index();
156 } 156 }
157 157
158 int RenderSurfaceImpl::ClipTreeIndex() const { 158 int RenderSurfaceImpl::ClipTreeIndex() const {
159 return owning_layer_->clip_tree_index(); 159 return owning_layer_->clip_tree_index();
160 } 160 }
161 161
162 int RenderSurfaceImpl::EffectTreeIndex() const { 162 int RenderSurfaceImpl::EffectTreeIndex() const {
163 DCHECK_EQ(effect_tree_index_, 163 DCHECK_EQ(effect_tree_index_,
164 layer_tree_impl_->property_trees() 164 layer_tree_impl_->property_trees()
165 ->effect_id_to_index_map[stable_effect_id_]); 165 ->layer_id_to_effect_node_index[stable_effect_id_]);
166 return effect_tree_index_; 166 return effect_tree_index_;
167 } 167 }
168 168
169 const EffectNode* RenderSurfaceImpl::OwningEffectNode() const { 169 const EffectNode* RenderSurfaceImpl::OwningEffectNode() const {
170 return layer_tree_impl_->property_trees()->effect_tree.Node( 170 return layer_tree_impl_->property_trees()->effect_tree.Node(
171 EffectTreeIndex()); 171 EffectTreeIndex());
172 } 172 }
173 173
174 void RenderSurfaceImpl::SetClipRect(const gfx::Rect& clip_rect) { 174 void RenderSurfaceImpl::SetClipRect(const gfx::Rect& clip_rect) {
175 if (clip_rect == draw_properties_.clip_rect) 175 if (clip_rect == draw_properties_.clip_rect)
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 RenderPassDrawQuad* quad = 414 RenderPassDrawQuad* quad =
415 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); 415 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
416 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, 416 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect,
417 GetRenderPassId(), mask_resource_id, mask_uv_scale, 417 GetRenderPassId(), mask_resource_id, mask_uv_scale,
418 mask_texture_size, owning_layer_to_target_scale, 418 mask_texture_size, owning_layer_to_target_scale,
419 FiltersOrigin()); 419 FiltersOrigin());
420 } 420 }
421 421
422 } // namespace cc 422 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698