4328e928ef
This is a hybrid approach where we stencil only the curves using GPU tessellation shaders, and then tessellate the path's inner polygon on CPU and draw it directly to the final render target, stencilled against the curves. Tessellating just the inner polygon is more than fast enough to do in real time, and still allows us fill in the majority of pixels in a single render pass. It gives us most the benefit of CPU tessellation, but at a fraction of the cost. Furthermore, the tessellated inner polygon can potentially be cached and reused independent of the view matrix. Change-Id: Id45adc643b51ab80a0c655dd2045a5314bdc7507 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/266456 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.