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

Unified Diff: cc/trees/property_tree.h

Issue 2148383005: cc: Use sublayer scale from effect tree (2) (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 | « cc/trees/layer_tree_impl.cc ('k') | 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 b00d090a3d863eb43bbd2946455cf70dc4cc4cf9..fd57243863f80a4d252f050fc4c92ea253915b44 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -152,19 +152,11 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
// 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(
+ bool ComputeTransformWithDestinationSurfaceContentsScale(
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;
@@ -254,7 +246,8 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
return cached_data_;
}
- gfx::Transform ToScreenSpaceTransformWithoutSublayerScale(int id) const;
+ gfx::Transform ToScreenSpaceTransformWithoutSurfaceContentsScale(
+ int id) const;
void ToProtobuf(proto::PropertyTree* proto) const;
void FromProtobuf(const proto::PropertyTree& proto,
@@ -283,7 +276,7 @@ class CC_EXPORT TransformTree final : public PropertyTree<TransformNode> {
void UpdateScreenSpaceTransform(TransformNode* node,
TransformNode* parent_node,
TransformNode* target_node);
- void UpdateSublayerScale(TransformNode* node);
+ void UpdateSurfaceContentsScale(TransformNode* node);
void UpdateTargetSpaceTransform(TransformNode* node,
TransformNode* target_node);
void UpdateAnimationProperties(TransformNode* node,
@@ -331,7 +324,7 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
float EffectiveOpacity(const EffectNode* node) const;
- void UpdateSublayerScale(EffectNode* node);
+ void UpdateSurfaceContentsScale(EffectNode* node);
void UpdateEffects(int id);
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698