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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2245463002: cc : Cache trasnforms to target even when target is a descendant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 4 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 | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 44b5fa4b79fb729710ad770ba385bfa4636e2704..f101bffa848ec1df0b70557bfe12c860b69667f7 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -130,9 +130,8 @@ bool ComputeClipRectInTargetSpace(const LayerImpl* layer,
return false;
}
} else {
- if (property_trees->ComputeTransformToTarget(clip_node->target_transform_id,
- target_effect_node->id,
- &clip_to_target)) {
+ if (property_trees->ComputeTransformFromTarget(
+ target_node_id, clip_node->target_effect_id, &clip_to_target)) {
*clip_rect_in_target_space = MathUtil::ProjectClippedRect(
clip_to_target, clip_node->clip_in_target_space);
} else {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698