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

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

Issue 2716733007: cc: Rename LayerImpl::render_surface to GetRenderSurface (Closed)
Patch Set: Created 3 years, 10 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.h ('k') | cc/layers/layer_iterator.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } 1017 }
1018 1018
1019 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const { 1019 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const {
1020 gfx::Transform scaled_draw_transform = DrawTransform(); 1020 gfx::Transform scaled_draw_transform = DrawTransform();
1021 scaled_draw_transform.Scale(SK_MScalar1 / scale, SK_MScalar1 / scale); 1021 scaled_draw_transform.Scale(SK_MScalar1 / scale, SK_MScalar1 / scale);
1022 gfx::Size scaled_bounds = gfx::ScaleToCeiledSize(bounds(), scale); 1022 gfx::Size scaled_bounds = gfx::ScaleToCeiledSize(bounds(), scale);
1023 return MathUtil::MapEnclosingClippedRect(scaled_draw_transform, 1023 return MathUtil::MapEnclosingClippedRect(scaled_draw_transform,
1024 gfx::Rect(scaled_bounds)); 1024 gfx::Rect(scaled_bounds));
1025 } 1025 }
1026 1026
1027 RenderSurfaceImpl* LayerImpl::render_surface() const { 1027 RenderSurfaceImpl* LayerImpl::GetRenderSurface() const {
1028 EffectNode* effect_node = GetEffectTree().Node(effect_tree_index_); 1028 EffectNode* effect_node = GetEffectTree().Node(effect_tree_index_);
1029 if (effect_node->owning_layer_id == id()) 1029 if (effect_node->owning_layer_id == id())
1030 return GetEffectTree().GetRenderSurface(effect_tree_index_); 1030 return GetEffectTree().GetRenderSurface(effect_tree_index_);
1031 return nullptr; 1031 return nullptr;
1032 } 1032 }
1033 1033
1034 RenderSurfaceImpl* LayerImpl::render_target() { 1034 RenderSurfaceImpl* LayerImpl::render_target() {
1035 return GetEffectTree().GetRenderSurface(render_target_effect_tree_index()); 1035 return GetEffectTree().GetRenderSurface(render_target_effect_tree_index());
1036 } 1036 }
1037 1037
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 1072
1073 ScrollTree& LayerImpl::GetScrollTree() const { 1073 ScrollTree& LayerImpl::GetScrollTree() const {
1074 return GetPropertyTrees()->scroll_tree; 1074 return GetPropertyTrees()->scroll_tree;
1075 } 1075 }
1076 1076
1077 TransformTree& LayerImpl::GetTransformTree() const { 1077 TransformTree& LayerImpl::GetTransformTree() const {
1078 return GetPropertyTrees()->transform_tree; 1078 return GetPropertyTrees()->transform_tree;
1079 } 1079 }
1080 1080
1081 } // namespace cc 1081 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698