|
SkottieAnimation | createAnimation (TextureView view, InputStream is, int backgroundColor, int repeatCount) |
|
SkottieAnimation | createAnimation (SurfaceTexture surfaceTexture, InputStream is) |
|
SkottieAnimation | createAnimation (SurfaceView view, InputStream is, int backgroundColor, int repeatCount) |
|
void | updateAnimationSurface (Animatable animation, SurfaceTexture surfaceTexture, int width, int height) |
|
void | setMaxCacheSize (int maxCacheSize) |
|
Definition at line 30 of file SkottieRunner.java.
◆ [static initializer]()
◆ createAnimation() [1/3]
SkottieAnimation org.skia.skottie.SkottieRunner.createAnimation |
( |
SurfaceTexture |
surfaceTexture, |
|
|
InputStream |
is |
|
) |
| |
|
inline |
Create a new animation by feeding data from "is" and replaying in a SurfaceTexture. SurfaceTexture is possibly taken from a TextureView and can be updated with updateAnimationSurface.
Definition at line 74 of file SkottieRunner.java.
◆ createAnimation() [2/3]
SkottieAnimation org.skia.skottie.SkottieRunner.createAnimation |
( |
SurfaceView |
view, |
|
|
InputStream |
is, |
|
|
int |
backgroundColor, |
|
|
int |
repeatCount |
|
) |
| |
|
inline |
Create a new animation by feeding data from "is" and replaying in a SurfaceView. State is controlled internally by SurfaceHolder.
Definition at line 82 of file SkottieRunner.java.
◆ createAnimation() [3/3]
SkottieAnimation org.skia.skottie.SkottieRunner.createAnimation |
( |
TextureView |
view, |
|
|
InputStream |
is, |
|
|
int |
backgroundColor, |
|
|
int |
repeatCount |
|
) |
| |
|
inline |
Create a new animation by feeding data from "is" and replaying in a TextureView. TextureView is tracked internally for SurfaceTexture state.
Definition at line 65 of file SkottieRunner.java.
◆ createContext()
EGLContext org.skia.skottie.SkottieRunner.createContext |
( |
EGL10 |
egl, |
|
|
EGLDisplay |
eglDisplay, |
|
|
EGLConfig |
eglConfig |
|
) |
| |
|
inlinepackage |
Definition at line 223 of file SkottieRunner.java.
223 {
224 int[] attrib_list = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE };
225 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list);
226 }
◆ finalize()
void org.skia.skottie.SkottieRunner.finalize |
( |
| ) |
throws Throwable |
|
inlineprotected |
Definition at line 113 of file SkottieRunner.java.
113 {
114 try {
116 } finally {
117 super.finalize();
118 }
119 }
void runOnGLThread(Runnable r)
◆ getInstance()
static synchronized SkottieRunner org.skia.skottie.SkottieRunner.getInstance |
( |
| ) |
|
|
inlinestatic |
◆ getNativeProxy()
long org.skia.skottie.SkottieRunner.getNativeProxy |
( |
| ) |
|
|
inlinepackage |
◆ runOnGLThread()
void org.skia.skottie.SkottieRunner.runOnGLThread |
( |
Runnable |
r | ) |
throws Throwable |
|
inlinepackage |
◆ setMaxCacheSize()
void org.skia.skottie.SkottieRunner.setMaxCacheSize |
( |
int |
maxCacheSize | ) |
|
|
inline |
◆ updateAnimationSurface()
void org.skia.skottie.SkottieRunner.updateAnimationSurface |
( |
Animatable |
animation, |
|
|
SurfaceTexture |
surfaceTexture, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Pass a new SurfaceTexture: use this method only if managing TextureView outside SkottieRunner.
Definition at line 90 of file SkottieRunner.java.
91 {
92 try {
96 });
97 }
98 catch (Throwable t) {
99 Log.e(LOG_TAG,
"update failed", t);
100 throw new RuntimeException(t);
101 }
102 }
void Log(const char *format,...) SK_PRINTF_LIKE(1
◆ mEgl
EGL10 org.skia.skottie.SkottieRunner.mEgl |
|
package |
◆ mEglConfig
EGLConfig org.skia.skottie.SkottieRunner.mEglConfig |
|
package |
◆ mEglContext
EGLContext org.skia.skottie.SkottieRunner.mEglContext |
|
package |
◆ mEglDisplay
EGLDisplay org.skia.skottie.SkottieRunner.mEglDisplay |
|
package |
◆ mPBufferSurface
EGLSurface org.skia.skottie.SkottieRunner.mPBufferSurface |
|
package |
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/skottie/skottielib/src/main/java/org/skia/skottie/SkottieRunner.java