DescriptionMove second internal recursion to a precomputation in layer_tree_host_common.cc
Asymptotically, the recursive algorithm in calculateDrawTransforms is O(n^2)
because of a secondary recursion that occurs for every layer in
subtreeShouldRenderToSeparateSurface.
This patch moves the internal secondary recursion into a pre-walk, caching
the meaningful result of that recursion, so that the algorithm is O(2 * n).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172682
Patch Set 1 #Patch Set 2 : #
Total comments: 6
Patch Set 3 : cleaned up and rebased #
Total comments: 3
Messages
Total messages: 10 (0 generated)
|