Find cubic KLM functionals directly
authorcsmartdalton <csmartdalton@google.com>
Thu, 23 Mar 2017 19:38:45 +0000 (13:38 -0600)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 23 Mar 2017 21:05:45 +0000 (21:05 +0000)
commitcc26127920069cbd83e92cca3c69bb56cb165bcc
tree4454582e03d9b0701fbd4a23042a27cfeaea868b
parentf160ad4d76e9e7ec21c48f92ba05c16ffec566b4
Find cubic KLM functionals directly

- Updates GrPathUtils to computes the KLM functionals directly instead
  of deriving them from their explicit values at the control points.
- Updates the utility to return these functionals as a matrix
  rather than an array of scalar values.
- Adds a benchmark for chopCubicAtLoopIntersection.

BUG=skia:

Change-Id: I97a9b5cf610d33e15c9af96b9d9a8eb4a94b1ca7
Reviewed-on: https://skia-review.googlesource.com/9951
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
bench/CubicKLMBench.cpp [new file with mode: 0644]
gm/beziereffects.cpp
gn/bench.gni
src/gpu/GrPathUtils.cpp
src/gpu/GrPathUtils.h
src/gpu/ops/GrAAHairLinePathRenderer.cpp