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

Unified Diff: cc/trees/property_tree.h

Issue 1060413002: cc: Re-use transforms from transform nodes when computing visible rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 8 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.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;

Powered by Google App Engine
This is Rietveld 408576698