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

Unified Diff: cc/trees/property_tree.cc

Issue 2148383005: cc: Use sublayer scale from effect tree (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index d2b3783a5724dc82c0c44fadb6e5c24e3e3b5279..87d69fe7daf65c4c76b7156effacb7ff8527612e 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -172,25 +172,6 @@ bool TransformTree::ComputeTransformWithDestinationSublayerScale(
return success;
}
-bool TransformTree::ComputeTransformWithSourceSublayerScale(
- int source_id,
- int dest_id,
- gfx::Transform* transform) const {
- bool success = ComputeTransform(source_id, dest_id, transform);
-
- const TransformNode* source_node = Node(source_id);
- if (!source_node->needs_sublayer_scale)
- return success;
-
- if (source_node->sublayer_scale.x() == 0 ||
- source_node->sublayer_scale.y() == 0)
- return false;
-
- transform->Scale(1.f / source_node->sublayer_scale.x(),
- 1.f / source_node->sublayer_scale.y());
- return success;
-}
-
bool TransformTree::Are2DAxisAligned(int source_id, int dest_id) const {
gfx::Transform transform;
return ComputeTransform(source_id, dest_id, &transform) &&

Powered by Google App Engine
This is Rietveld 408576698