Tighten the matrix usage in cc/layer_tree_host_common.cpp
As calculateDrawTransforms has evolved, the math has become substantially more overhead. This patch refactors the matrix math to reduce the number of matrix copies and matrix multiplications. Changes that would drastically affect readability or robustness are avoided. With this patch, cc_perftests improves by approximately 6-8%. SevenTabSwitcher: 2030 runs/s --> 2220 runs/s (9.3%) tenTabSwitcher: 757 runs/s --> 807 runs/s (6.6%) BUG=163769 Review URL: https://codereview.chromium.org/11280271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171051 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment