borrow relevant parts of AOSP commit dbee9bb342cdfaa5155b1918f90262c05e2464cb

Our SVG-based VectorDrawable implementation still relies on `getDefaultColor`
but exceptions are no longer thrown when parsing VectorDrawable xml files
which use gradients as colors.
This commit is contained in:
Mis012
2025-01-02 22:25:05 +01:00
parent 7d59407138
commit 279c95becb
17 changed files with 3074 additions and 420 deletions

View File

@@ -0,0 +1,33 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class android_graphics_SweepGradient */
#ifndef _Included_android_graphics_SweepGradient
#define _Included_android_graphics_SweepGradient
#ifdef __cplusplus
extern "C" {
#endif
#undef android_graphics_SweepGradient_TYPE_COLORS_AND_POSITIONS
#define android_graphics_SweepGradient_TYPE_COLORS_AND_POSITIONS 1L
#undef android_graphics_SweepGradient_TYPE_COLOR_START_AND_COLOR_END
#define android_graphics_SweepGradient_TYPE_COLOR_START_AND_COLOR_END 2L
/*
* Class: android_graphics_SweepGradient
* Method: nativeCreate1
* Signature: (FF[I[F)J
*/
JNIEXPORT jlong JNICALL Java_android_graphics_SweepGradient_nativeCreate1
(JNIEnv *, jclass, jfloat, jfloat, jintArray, jfloatArray);
/*
* Class: android_graphics_SweepGradient
* Method: nativeCreate2
* Signature: (FFII)J
*/
JNIEXPORT jlong JNICALL Java_android_graphics_SweepGradient_nativeCreate2
(JNIEnv *, jclass, jfloat, jfloat, jint, jint);
#ifdef __cplusplus
}
#endif
#endif