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

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: Verify screen space transform when non_root_surfaces is disabled. 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
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index e0e09b5d630c48532175ed6f7c0177344743c140..461b7f3eba8d3634f1fe69b94b388c9a27a19a36 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->render_surface)
ajuma 2016/07/22 18:29:40 I think this is always null on the main thread sid
sunxd 2016/07/22 20:25:03 Done.
+ return effect_node->id;
+ else
+ return effect_node->target_id;
+}
+
void Layer::SetScrollTreeIndex(int index) {
DCHECK(IsPropertyChangeAllowed());
if (scroll_tree_index_ == index)

Powered by Google App Engine
This is Rietveld 408576698