summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2021-01-11 15:44:46 -0500
committerDerek Sollenberger <djsollen@google.com>2021-01-15 13:03:25 -0500
commit783e5aeb2e0926419b8bf5ff3550287400552b06 (patch)
tree28251332364592c182daabce32ff06c42da2af4d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent68c395f4c7a401ecf01d1c434126ace788e266c4 (diff)
Refactor RuntimeShader to support easier assignment of uniforms.
uniforms are no longer set as single block of bytes where the caller has to know the offset, but instead by the string identfier in the shader. This CL only supports floats, but future expansions of this will provide helpers for ints, colors, and byte[]. Also by storing the shaders and uniforms in the RuntimeShaderBuilder we can more easily copy them. This enables Canvas.drawRipple to not just copy the compiled SkSL effect, but also all the uniforms and other input shaders set on the RuntimeShader. Bug: 177051137 Test: HwAccelerationTest Change-Id: I4733f42ba662546be6bebc37f0b89832778e66ce
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions