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

Unified Diff: cc/trees/property_tree.h

Issue 2187403002: cc : Use screen space transform for computing translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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
« no previous file with comments | « no previous file | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 9bf1ed4430f418fb12d3c74b895135c4575d85ec..a97bad8e052ebcb973ce0b96dd8eba05c289a9a3 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -157,7 +157,10 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
// Computes the change of basis transform from node |source_id| to |dest_id|.
// This is used by scroll children to compute transform from their scroll
// parent space (source) to their parent space (destination) and it can atmost
- // be a translation.
+ // be a translation. This function assumes that the path from source to
+ // destination has only translations. So, this function should not be used
+ // when there can be intermediate 3d transforms but the end result is a
+ // translation.
bool ComputeTranslation(int source_id,
int dest_id,
gfx::Transform* transform) const;
« no previous file with comments | « no previous file | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698