skia2/modules
Kevin Lubick 88e0e75380 [canvaskit] Fix uniform handling for makeShader and MallocObj
shaders.skia.org was passing in a Malloc'd TypedArray for uniforms
(to avoid unnecessary copying of that buffer on every frame).

However, CanvasKit would always take ownership of that buffer and
free it when the shader was freed. CanvasKit should only take
ownership (and clean up) the uniform buffer if it was not
copied into pre-malloc'd memory.

This also adds a handy make target that builds CanvasKit
and copies it into the proper place in the infra repository
to run the shaders app locally.

See also: https://skia-review.googlesource.com/c/buildbot/+/543436

Change-Id: I6c6b7f94f8c8571f9ce0613ccdd7fceb0f315a12
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/543416
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2022-05-24 16:33:17 +00:00
..
androidkit [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit [canvaskit] Fix uniform handling for makeShader and MallocObj 2022-05-24 16:33:17 +00:00
particles [particles] add support for multiframe asset bindings 2022-05-19 19:39:12 +00:00
pathkit [pathkit] Expose res_scale 2022-05-23 17:46:48 +00:00
skottie Remove SkNx entirely 2022-05-24 15:57:57 +00:00
skparagraph Return the width of a placeholder in iterateThroughSingleRunByStyles 2022-05-19 22:08:54 +00:00
skplaintexteditor Fix -Wunused-but-set-variable warnings 2022-04-29 15:20:59 +00:00
skresources [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
sksg [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
skshaper [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
skunicode [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
svg [svg] Add support for var in color parsing. 2022-05-03 14:34:35 +00:00
BUILD.bazel [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00