Package org.robolectric.shadows
Class ShadowNativeRuntimeShader
java.lang.Object
org.robolectric.shadows.ShadowNativeRuntimeShader
@Implements(value=android.graphics.RuntimeShader.class, minSdk=26, shadowPicker=Picker.class) public class ShadowNativeRuntimeShader extends Object
Shadow for
RuntimeShader
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeRuntimeShader.Picker
Shadow picker forRuntimeShader
. -
Constructor Summary
Constructors Constructor Description ShadowNativeRuntimeShader()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(String sksl)
protected static long
nativeCreateBuilder(String sksl)
protected static long
nativeCreateShader(long shaderBuilder, long matrix, boolean isOpaque)
protected static long
nativeGetFinalizer()
protected static void
nativeUpdateShader(long shaderBuilder, String shaderName, long shader)
protected static void
nativeUpdateUniforms(long shaderBuilder, String uniformName, float[] uniforms)
-
Constructor Details
-
ShadowNativeRuntimeShader
public ShadowNativeRuntimeShader()
-
-
Method Details
-
__constructor__
-
nativeGetFinalizer
-
nativeCreateBuilder
-
nativeCreateShader
@Implementation(minSdk=31, maxSdk=32) protected static long nativeCreateShader(long shaderBuilder, long matrix, boolean isOpaque) -
nativeUpdateUniforms
@Implementation(minSdk=31, maxSdk=32) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, float[] uniforms) -
nativeUpdateShader
@Implementation(minSdk=31) protected static void nativeUpdateShader(long shaderBuilder, String shaderName, long shader)
-