Make TransformTree::CombineTransformsBetween run faster
commitfc88422b95407da518cd9bc535d50196d2d77d41
authorjaydasika <jaydasika@chromium.org>
Thu, 16 Apr 2015 20:06:11 +0000 (16 13:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Apr 2015 20:06:34 +0000 (16 20:06 +0000)
treeffe7af7794e9f9ee68d8714c46a8b5f3186cc546
parent28ae8a042359c0cd2269e0b8a816810f1307d898
Make TransformTree::CombineTransformsBetween run faster

TransformTree::CombineTransformsBetween is modified to compute the
combined transform between source and destination directly (without
walking the path) when the destination and all its ancestors are
flat. A unit test is added to validate the patch.

BUG=475636
TEST=passes all the unit tests along with the one added to validate the
patch. Telemetry test on poster circle page shows improvement in
performance. The draw_properties.tough_compositor:CDP_reduction percentage
improved from -287.82% to -149.36%.

Review URL: https://codereview.chromium.org/1096493002

Cr-Commit-Position: refs/heads/master@{#325503}
cc/trees/property_tree.cc
cc/trees/property_tree_unittest.cc