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

Unified Diff: cc/layers/layer.cc

Issue 2166043002: cc: Compute target space transform dynamically (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert ancestors_are_invertible change Created 4 years, 5 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.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index e0e09b5d630c48532175ed6f7c0177344743c140..36d725c6010a8e87e36eb02bab050783d74e9d84 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -981,6 +981,15 @@ int Layer::effect_tree_index() const {
return effect_tree_index_;
}
+int Layer::render_target_effect_tree_index() const {
+ EffectNode* effect_node =
+ layer_tree_host_->property_trees()->effect_tree.Node(effect_tree_index_);
+ if (effect_node->has_render_surface)
+ return effect_node->id;
+ else
+ return effect_node->target_id;
+}
+
void Layer::SetScrollTreeIndex(int index) {
DCHECK(IsPropertyChangeAllowed());
if (scroll_tree_index_ == index)
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698