d9b9e5ec4b
https://skia-review.googlesource.com/c/skia/+/297896 draws several paths with over 1000 points (one has ~250k) and was pretty slow. We already had a way to provide a flat(ish) array of all the verbs, points and weights mushed together (although that should be cleaned up to prefer taking a 1d array). This adds an additional way to provide multiple verbs, points, (and optionally weights, if conics are used) to CanvasKit. This makes things dramatically faster because of batch copying the values between JS and WASM (or using Malloc). Additionally, the above CL revealed a need to be able to use a subsection of a Malloc'd array efficiently. Thus, I added subarray as a method of the Malloc object, which can be used effectively as a pointer (i.e. no copying). Change-Id: I2c1d26b25118fb9949e878b1b519d93efcfa5019 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297841 Reviewed-by: Nathaniel Nifong <nifong@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
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.