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

Public Member Functions

 RuntimeShaderRenderer (Resources res, int resID)
 
- 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 ()
 

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)
 

Detailed Description

Definition at line 18 of file RuntimeShaderActivity.java.

Constructor & Destructor Documentation

◆ RuntimeShaderRenderer()

org.skia.jetskidemo.RuntimeShaderRenderer.RuntimeShaderRenderer ( Resources  res,
int  resID 
)
inline

Definition at line 23 of file RuntimeShaderActivity.java.

23 {
24 mSample = new RuntimeSample(res, resID);
25 }

Member Function Documentation

◆ onRenderFrame()

void org.skia.jetskidemo.RuntimeShaderRenderer.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 34 of file RuntimeShaderActivity.java.

34 {
35 mSample.render(canvas, ms, 0, 0, mSurfaceWidth, mSurfaceHeight);
36 }
void render(Canvas canvas, long ms, float left, float top, float right, float bottom)

◆ onSurfaceInitialized()

void org.skia.jetskidemo.RuntimeShaderRenderer.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 28 of file RuntimeShaderActivity.java.

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

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