skia2/platform_tools/android
Florin Malita 05bb5a8b30 [androidkit] Introduce RuntimeShader
- opaque Shader class to act as a Java SkShader wrapper
 - shader slot on Paint
 - RuntimeShaderBuilder utility to enable the same use pattern as native
   Skia:

  RuntimeShaderBuilder builder(sksl_string);
  builder.setUniform("foo", 1);
  builder.setUniform("bar", 2);
  paint.setShader(builder.makeShader());

or, more fluent:

  paint.setShader(
      RuntimeShaderBuilder(sksl_string)
          .setUniform("foo", 1)
          .setUniform("bar", 2)
          .makeShader());


Change-Id: I7cd241a2f64bc54dcae2175ed35040edf6506ed3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/399736
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2021-04-23 14:38:36 +00:00
..
apps [androidkit] Introduce RuntimeShader 2021-04-23 14:38:36 +00:00
bin Improve selection of target_cpu in android_gdbserver 2020-04-21 19:31:54 +00:00
launcher Cleanup android build files and tools 2016-04-18 12:57:35 -07:00
skp_gen Fix Python3 compatibility 2021-03-25 14:15:35 +00:00
tradefed Fail gracefully when dm.json is not present 2015-04-08 15:20:25 -04:00
vulkan Revert "Revert "IWYU for tests starting with 'D'."" 2018-05-22 17:12:35 +00:00
.gitignore SkQP: replace blacklist with: DoNotExecuteInExperimentalMode and NoScoreInCompatibilityTestMode 2018-01-22 20:11:57 +00:00
gclient.config Remove references to Skia's SVN repository 2014-01-09 21:41:39 +00:00
whitespace.txt Copy the top level Android directory into trunk. 2013-04-29 12:09:31 +00:00