Skip to content

Commit

Permalink
cc: Fix comment about screenspace transform.
Browse files Browse the repository at this point in the history
BUG=160834
R=enne,shawnsingh


Review URL: https://chromiumcodereview.appspot.com/11366252

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167781 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
danakj@chromium.org committed Nov 15, 2012
1 parent a33747b commit 655fa7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc/layer_tree_host_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static void calculateDrawTransformsInternal(LayerType* layer, const WebTransform
// M[screenspace] = M[root] * Tr[origin] * compositeLayerTransform * S[layer2content]
// = M[root] * Tr[layer->position() + anchor] * M[layer] * Tr[anchor2origin] * S[layer2content]
//
// Interpreting the math left-to-right, this transforms from the root render surface's content space to the local layer's origin in layer space.
// Interpreting the math left-to-right, this transforms from the root render surface's content space to the origin of the layer in content space.
//
// The transform hierarchy that is passed on to children (i.e. the child's parentMatrix) is:
// M[parent]_for_child = M[parent] * Tr[origin] * compositeLayerTransform * compositeSublayerTransform
Expand Down

0 comments on commit 655fa7f

Please sign in to comment.