Optimize QuadF's PointIsInTriangle function

PointIsInTriangle() is still the hotspot of many CSS animation cases.Take Nexus10 with latest chromium build for example:
4.0%  case: poster-circle.html
1.5%  case: morphing-cubes.html

This patch changes the algorithm of testing "Point In Triangle".
1. Using double-precision float point.
2. A much readable algorithm.
3. Better performance due to remove 2 div operation

R=danakj@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#290290}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290290 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: d1aea99406b09e12ffca06cb68506253c5594517
1 file changed
tree: 34112624d5576b214d619ac7e707f4bb1d6f7654
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/