Flutter Engine
The Flutter Engine
|
#include "include/codec/SkCodec.h"
#include "include/codec/SkGifDecoder.h"
#include "include/codec/SkJpegDecoder.h"
#include "include/codec/SkPngDecoder.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkStream.h"
#include "include/core/SkSurface.h"
#include "include/ports/SkFontMgr_empty.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrContextOptions.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "include/gpu/ganesh/gl/GrGLDirectContext.h"
#include "include/gpu/gl/GrGLInterface.h"
#include "include/gpu/gl/GrGLTypes.h"
#include "include/gpu/ganesh/gl/egl/GrGLMakeEGLInterface.h"
#include "modules/skottie/include/Skottie.h"
#include "modules/skresources/include/SkResources.h"
#include "modules/sksg/include/SkSGInvalidationController.h"
#include "modules/skshaper/utils/FactoryHelpers.h"
#include <jni.h>
#include <math.h>
#include <string>
#include <utility>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES3/gl3.h>
Go to the source code of this file.
Classes | |
struct | SkottieRunner |
struct | SkottieAnimation |
Macros | |
#define | STENCIL_BUFFER_SIZE 8 |
#define | ATRACE_NAME(name) |
#define | ATRACE_CALL() |
Functions | |
static void | release_global_jni_ref (const void *, void *context) |
JNIEXPORT jlong JNICALL | Java_org_skia_skottie_SkottieRunner_nCreateProxy (JNIEnv *env, jclass clazz) |
JNIEXPORT void JNICALL | Java_org_skia_skottie_SkottieRunner_nDeleteProxy (JNIEnv *env, jclass clazz, jlong nativeProxy) |
JNIEXPORT void JNICALL | Java_org_skia_skottie_SkottieRunner_nSetMaxCacheSize (JNIEnv *env, jclass clazz, jint maxCacheSize, jlong nativeProxy) |
JNIEXPORT jlong JNICALL | Java_org_skia_skottie_SkottieAnimation_nCreateProxy (JNIEnv *env, jobject clazz, jlong runner, jobject bufferObj) |
JNIEXPORT void JNICALL | Java_org_skia_skottie_SkottieAnimation_nDeleteProxy (JNIEnv *env, jclass clazz, jlong nativeProxy) |
JNIEXPORT bool JNICALL | Java_org_skia_skottie_SkottieAnimation_nDrawFrame (JNIEnv *env, jclass clazz, jlong nativeProxy, jint width, jint height, jboolean wideColorGamut, jfloat progress, jint backgroundColor, jboolean forceDraw) |
JNIEXPORT jlong JNICALL | Java_org_skia_skottie_SkottieAnimation_nGetDuration (JNIEnv *env, jclass clazz, jlong nativeProxy) |
Variables | |
static JavaVM * | sJVM = nullptr |
#define ATRACE_CALL | ( | ) |
Definition at line 69 of file native-lib.cpp.
#define ATRACE_NAME | ( | name | ) |
Definition at line 68 of file native-lib.cpp.
#define STENCIL_BUFFER_SIZE 8 |
Definition at line 47 of file native-lib.cpp.
JNIEXPORT jlong JNICALL Java_org_skia_skottie_SkottieAnimation_nCreateProxy | ( | JNIEnv * | env, |
jobject | clazz, | ||
jlong | runner, | ||
jobject | bufferObj | ||
) |
Definition at line 145 of file native-lib.cpp.
JNIEXPORT void JNICALL Java_org_skia_skottie_SkottieAnimation_nDeleteProxy | ( | JNIEnv * | env, |
jclass | clazz, | ||
jlong | nativeProxy | ||
) |
Definition at line 206 of file native-lib.cpp.
JNIEXPORT bool JNICALL Java_org_skia_skottie_SkottieAnimation_nDrawFrame | ( | JNIEnv * | env, |
jclass | clazz, | ||
jlong | nativeProxy, | ||
jint | width, | ||
jint | height, | ||
jboolean | wideColorGamut, | ||
jfloat | progress, | ||
jint | backgroundColor, | ||
jboolean | forceDraw | ||
) |
Definition at line 217 of file native-lib.cpp.
JNIEXPORT jlong JNICALL Java_org_skia_skottie_SkottieAnimation_nGetDuration | ( | JNIEnv * | env, |
jclass | clazz, | ||
jlong | nativeProxy | ||
) |
Definition at line 276 of file native-lib.cpp.
JNIEXPORT jlong JNICALL Java_org_skia_skottie_SkottieRunner_nCreateProxy | ( | JNIEnv * | env, |
jclass | clazz | ||
) |
Definition at line 88 of file native-lib.cpp.
JNIEXPORT void JNICALL Java_org_skia_skottie_SkottieRunner_nDeleteProxy | ( | JNIEnv * | env, |
jclass | clazz, | ||
jlong | nativeProxy | ||
) |
Definition at line 109 of file native-lib.cpp.
JNIEXPORT void JNICALL Java_org_skia_skottie_SkottieRunner_nSetMaxCacheSize | ( | JNIEnv * | env, |
jclass | clazz, | ||
jint | maxCacheSize, | ||
jlong | nativeProxy | ||
) |
Definition at line 124 of file native-lib.cpp.
|
static |
Definition at line 77 of file native-lib.cpp.
|
static |
Definition at line 75 of file native-lib.cpp.