Flutter Engine
The Flutter Engine
Protected Member Functions | Package Functions | List of all members
org.skia.jetskidemo.SkottieAnimationRenderer Class Reference
Inheritance diagram for org.skia.jetskidemo.SkottieAnimationRenderer:
org.skia.jetski.util.SurfaceRenderer

Protected Member Functions

void onSurfaceInitialized (Surface surface)
 
void onRenderFrame (Canvas canvas, long ms)
 
abstract void onSurfaceInitialized (Surface surface)
 
abstract void onRenderFrame (Canvas canvas, long ms)
 

Package Functions

 SkottieAnimationRenderer (Resources res, int resID)
 

Additional Inherited Members

- Public Member Functions inherited from org.skia.jetski.util.SurfaceRenderer
void run ()
 
void surfaceCreated (SurfaceHolder holder)
 
void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
 
void surfaceDestroyed (SurfaceHolder holder)
 
void setBaseTime (long millis)
 
void release ()
 

Detailed Description

Definition at line 19 of file SkottieAnimationActivity.java.

Constructor & Destructor Documentation

◆ SkottieAnimationRenderer()

org.skia.jetskidemo.SkottieAnimationRenderer.SkottieAnimationRenderer ( Resources  res,
int  resID 
)
inlinepackage

Definition at line 24 of file SkottieAnimationActivity.java.

24 {
25 mSample = new SkottieSample(res, resID);
26 }

Member Function Documentation

◆ onRenderFrame()

void org.skia.jetskidemo.SkottieAnimationRenderer.onRenderFrame ( Canvas  canvas,
long  ms 
)
inlineprotected

Callback for frame content.

Invoked once per (vsync'ed) frame.

Reimplemented from org.skia.jetski.util.SurfaceRenderer.

Definition at line 35 of file SkottieAnimationActivity.java.

35 {
36 canvas.drawColor(1, 1, 1, 1);
37 mSample.render(canvas, ms, 0, 0, mSurfaceWidth, mSurfaceHeight);
38 }
void drawColor(Color c)
Definition: Canvas.java:99
void render(Canvas canvas, long ms, float left, float top, float right, float bottom)

◆ onSurfaceInitialized()

void org.skia.jetskidemo.SkottieAnimationRenderer.onSurfaceInitialized ( Surface  surface)
inlineprotected

Initialization callback.

This can be invoked multiple times if the underlying surface changes.

Reimplemented from org.skia.jetski.util.SurfaceRenderer.

Definition at line 29 of file SkottieAnimationActivity.java.

29 {
30 mSurfaceWidth = surface.getWidth();
31 mSurfaceHeight = surface.getHeight();
32 }
VkSurfaceKHR surface
Definition: main.cc:49

The documentation for this class was generated from the following file: