Index: cc/trees/property_tree.h |
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h |
index f4351bac51d15640dcd1f306b07f8ef2720586b6..43dcda590751f4458f6cc876a3619804871d4857 100644 |
--- a/cc/trees/property_tree.h |
+++ b/cc/trees/property_tree.h |
@@ -153,6 +153,23 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> { |
int dest_id, |
gfx::Transform* transform) const; |
+ // Computes the change of basis transform from node |source_id| to |dest_id|, |
+ // including any sublayer scale at |dest_id|. The function returns false iff |
+ // the inverse of a singular transform was used (and the result should, |
+ // therefore, not be trusted). |
+ bool ComputeTransformWithDestinationSublayerScale( |
+ int source_id, |
+ int dest_id, |
+ gfx::Transform* transform) const; |
+ |
+ // Computes the change of basis transform from node |source_id| to |dest_id|, |
+ // including any sublayer scale at |source_id|. The function returns false |
+ // iff the inverse of a singular transform was used (and the result should, |
+ // therefore, not be trusted). |
+ bool ComputeTransformWithSourceSublayerScale(int source_id, |
+ int dest_id, |
+ gfx::Transform* transform) const; |
+ |
// Returns true iff the nodes indexed by |source_id| and |dest_id| are 2D axis |
// aligned with respect to one another. |
bool Are2DAxisAligned(int source_id, int dest_id) const; |