skia2/modules/canvaskit
Brian Osman fe49163cd1 Major rewrite of the particle system based on the SkSL interpreter
This removes all of the fixed-function particle affector classes.
Instead, each particle effect just has two SkSL snippets, one for
spawn logic, and one for update logic. Each one gets an inout copy
of the particle struct. Ultimately, this makes the effects much
simpler and smaller, while also being far more flexible (you can
do whatever you want with any values you want). Finally, because
the interpreter is vectorized and a particular effect's scripts
are usually tuned to the specific behaviors desired, it's faster
on basically every effect I compared.

I re-created all of the old effects in the new system. Many just
use pure SkSL (no curves or anything). Some of the old curve and
path/text stuff was very handy, though - so those are now exposed
as external values in the interpreter. Basically, an effect can
have any number of named "bindings" that are a callable thing.
This can be a path, text (shortcut for making fancy paths), curve,
or color curve. The path ones return a float4 with position and
normal, the curves return one or four floats.

... and this transposes all of the particle data storage into
SoA form, so that it can use the much faster interpreter entry
point.

Change-Id: Iebe711c45994c4201041b12d171af976bc5e758e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222057
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2019-07-25 19:59:03 +00:00
..
canvaskit [canvaskit] Return damage rect from ManagedAnimation::seek() 2019-07-22 18:29:05 +00:00
fonts [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
htmlcanvas [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
perf [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
tests [CanvasKit] Add basic support for SkPicture 2019-04-05 17:14:55 +00:00
.gitignore [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
canvaskit_bindings.cpp [canvaskit] Save a copy by using SkVertices::Builder 2019-06-03 18:41:00 +00:00
CHANGELOG.md [canvaskit] Save a copy by using SkVertices::Builder 2019-06-03 18:41:00 +00:00
compile.sh rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
cpu.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
debug.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
externs.js [canvaskit] Save a copy by using SkVertices::Builder 2019-06-03 18:41:00 +00:00
gpu.js [canvaskit] Bump GPU resource cache to 256MB 2019-04-05 18:06:18 +00:00
helper.js [canvaskit] Save a copy by using SkVertices::Builder 2019-06-03 18:41:00 +00:00
interface.js [canvaskit] Save a copy by using SkVertices::Builder 2019-06-03 18:41:00 +00:00
karma.bench.conf.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
karma.conf.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
Makefile [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
package.json [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
particles_bindings.cpp Major rewrite of the particle system based on the SkSL interpreter 2019-07-25 19:59:03 +00:00
postamble.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
preamble.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
ready.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
release.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
serve.py [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
skottie_bindings.cpp [canvaskit] Return damage rect from ManagedAnimation::seek() 2019-07-22 18:29:05 +00:00
skottie.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
WasmAliases.h [canvaskit] adding drawAtlas to canvas API 2019-04-04 13:03:35 +00:00