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

Unified Diff: cc/layers/layer_impl.cc

Issue 2857343002: Delete LayerImpl::GetRenderSurface. (Closed)
Patch Set: none Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index cd2d10f019dd6a0f329ddc47947d401578778256..3006bd5ad50e3f9d39bc95add9f8f63b18d769da 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -932,14 +932,6 @@ gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const {
gfx::Rect(scaled_bounds));
}
-RenderSurfaceImpl* LayerImpl::GetRenderSurface() const {
- DCHECK(effect_tree_index_ != EffectTree::kInvalidNodeId);
- EffectNode* effect_node = GetEffectTree().Node(effect_tree_index_);
- if (effect_node->owning_layer_id == id())
- return GetEffectTree().GetRenderSurface(effect_tree_index_);
- return nullptr;
-}
-
RenderSurfaceImpl* LayerImpl::render_target() {
return GetEffectTree().GetRenderSurface(render_target_effect_tree_index());
}
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698