Package org.robolectric.nativeruntime
Class RenderEffectNatives
java.lang.Object
org.robolectric.nativeruntime.RenderEffectNatives
Native methods for RenderEffect JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/RenderEffect.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
nativeCreateBitmapEffect
(long bitmapHandle, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom) static long
nativeCreateBlendModeEffect
(long dst, long src, int blendmode) static long
nativeCreateBlurEffect
(float radiusX, float radiusY, long nativeInput, int edgeTreatment) static long
nativeCreateChainEffect
(long outer, long inner) static long
nativeCreateColorFilterEffect
(long colorFilter, long nativeInput) static long
nativeCreateOffsetEffect
(float offsetX, float offsetY, long nativeInput) static long
nativeCreateShaderEffect
(long shader) static long
-
Method Details
-
nativeCreateOffsetEffect
public static long nativeCreateOffsetEffect(float offsetX, float offsetY, long nativeInput) -
nativeCreateBlurEffect
public static long nativeCreateBlurEffect(float radiusX, float radiusY, long nativeInput, int edgeTreatment) -
nativeCreateBitmapEffect
public static long nativeCreateBitmapEffect(long bitmapHandle, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom) -
nativeCreateColorFilterEffect
public static long nativeCreateColorFilterEffect(long colorFilter, long nativeInput) -
nativeCreateBlendModeEffect
public static long nativeCreateBlendModeEffect(long dst, long src, int blendmode) -
nativeCreateChainEffect
public static long nativeCreateChainEffect(long outer, long inner) -
nativeCreateShaderEffect
public static long nativeCreateShaderEffect(long shader) -
nativeGetFinalizer
public static long nativeGetFinalizer()
-