Optimize QuadF's IsCounterClockwise function
IsCounterClockwise is a busy function,See performance and discussion: https://groups.google.com/a/chromium.org/forum/#!topic/graphics-dev/aSvAbzcgbos This patch reduce IsCounterClockwise() from 8mul+3add+4sub to 4mul+2add+2sub, and performance doubled in real micro-bench. R=danakj@chromium.org Review URL: https://codereview.chromium.org/458113002 Cr-Commit-Position: refs/heads/master@{#289138} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289138 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment