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

Unified Diff: cc/trees/property_tree.cc

Issue 2712053002: cc : Fix transform calculation bug while calculating clip rects (Closed)
Patch Set: clean_up 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/property_tree.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index 577903ddaefd508cfdb4a320da170068ee58bd1d..af7dec6c33bacb50d833c1af31461e1e0c53bbee 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -2120,20 +2120,4 @@ gfx::Transform PropertyTrees::ToScreenSpaceTransformWithoutSurfaceContentsScale(
return screen_space_transform;
}
-bool PropertyTrees::ComputeTransformFromTarget(
- int transform_id,
- int effect_id,
- gfx::Transform* transform) const {
- transform->MakeIdentity();
- if (transform_id == TransformTree::kInvalidNodeId)
- return true;
-
- const EffectNode* effect_node = effect_tree.Node(effect_id);
-
- bool success = GetFromTarget(transform_id, effect_id, transform);
- transform->Scale(effect_node->surface_contents_scale.x(),
- effect_node->surface_contents_scale.y());
- return success;
-}
-
} // namespace cc
« no previous file with comments | « cc/trees/property_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698