DescriptionReduce more matrix math in calculateDrawProperties
This patch avoids even more math. cc_perftests on linux desktop improved by about 3-4%.
(0) Skip applying the layer's anchorPoint + transform + inverseAnchorPoint if the layer's transform was identity.
(1) The surface clipRect, projected from ancestor space to current surface
space, is now cached in calcDrawTransforms so it only needs to be computed
once, instead of onces for every layer that contributes to the surface.
(2) The layer's bounds, transformed into target surface space, are passed into
calculateVisibleContentRect, so that this function does not need to redo the
mapClippedRect computation unnecessarily.
(3) The early exit logic was made more aggressive, to early-out as soon as we
realize that none of the layer's drawProperties need to be computed.
BUG=163769
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172475
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Updated #Messages
Total messages: 4 (0 generated)
|