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

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

Issue 2892103002: Update cc effect node documentation. (Closed)
Patch Set: Remove TODO. Created 3 years, 7 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 | « no previous file | cc/trees/effect_node.h » ('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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return DebugColors::SurfaceBorderWidth( 120 return DebugColors::SurfaceBorderWidth(
121 layer_tree_impl_ ? layer_tree_impl_->device_scale_factor() : 1); 121 layer_tree_impl_ ? layer_tree_impl_->device_scale_factor() : 1);
122 } 122 }
123 123
124 LayerImpl* RenderSurfaceImpl::MaskLayer() { 124 LayerImpl* RenderSurfaceImpl::MaskLayer() {
125 int mask_layer_id = OwningEffectNode()->mask_layer_id; 125 int mask_layer_id = OwningEffectNode()->mask_layer_id;
126 return layer_tree_impl_->LayerById(mask_layer_id); 126 return layer_tree_impl_->LayerById(mask_layer_id);
127 } 127 }
128 128
129 bool RenderSurfaceImpl::HasMask() const { 129 bool RenderSurfaceImpl::HasMask() const {
130 return OwningEffectNode()->mask_layer_id != EffectTree::kInvalidNodeId; 130 return OwningEffectNode()->mask_layer_id != Layer::INVALID_ID;
131 } 131 }
132 132
133 const FilterOperations& RenderSurfaceImpl::Filters() const { 133 const FilterOperations& RenderSurfaceImpl::Filters() const {
134 return OwningEffectNode()->filters; 134 return OwningEffectNode()->filters;
135 } 135 }
136 136
137 gfx::PointF RenderSurfaceImpl::FiltersOrigin() const { 137 gfx::PointF RenderSurfaceImpl::FiltersOrigin() const {
138 return OwningEffectNode()->filters_origin; 138 return OwningEffectNode()->filters_origin;
139 } 139 }
140 140
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 NOTIMPLEMENTED(); 538 NOTIMPLEMENTED();
539 break; 539 break;
540 default: 540 default:
541 NOTREACHED(); 541 NOTREACHED();
542 break; 542 break;
543 } 543 }
544 } 544 }
545 } 545 }
546 546
547 } // namespace cc 547 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/effect_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698