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

Unified Diff: cc/trees/property_tree.h

Issue 2172003002: cc: Compute transform to target using effect id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix_compile_error 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.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index dbc9b4d5aaf54643c9524c39f1abc7a0787fd37e..86d95ab7a8fadd98ae1489636bae25506c83f5b3 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -237,11 +237,6 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
void FromProtobuf(const proto::PropertyTree& proto,
std::unordered_map<int, int>* node_id_to_index_map);
- private:
- // Returns true iff the node at |desc_id| is a descendant of the node at
- // |anc_id|.
- bool IsDescendant(int desc_id, int anc_id) const;
-
// Computes the combined transform between |source_id| and |dest_id| and
// returns false if the inverse of a singular transform was used. These two
// nodes must be on the same ancestor chain.
@@ -256,6 +251,11 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
int dest_id,
gfx::Transform* transform) const;
+ private:
+ // Returns true iff the node at |desc_id| is a descendant of the node at
+ // |anc_id|.
+ bool IsDescendant(int desc_id, int anc_id) const;
+
void UpdateLocalTransform(TransformNode* node);
void UpdateScreenSpaceTransform(TransformNode* node,
TransformNode* parent_node,
@@ -544,6 +544,9 @@ class CC_EXPORT PropertyTrees final {
gfx::Transform ToScreenSpaceTransformWithoutSurfaceContentsScale(
int transform_id,
int effect_id) const;
+ bool ComputeTransformToTarget(int transform_id,
+ int effect_id,
+ gfx::Transform* transform) const;
private:
gfx::Vector2dF inner_viewport_container_bounds_delta_;

Powered by Google App Engine
This is Rietveld 408576698