8package org.skia.jetskidemo;
11import android.content.res.Resources;
14import org.
skia.jetski.*;
15import org.skia.jetski.util.*;
16import org.skia.jetskidemo.samples.RuntimeSample;
20 private float mSurfaceWidth,
29 mSurfaceWidth =
surface.getWidth();
30 mSurfaceHeight =
surface.getHeight();
35 mSample.
render(canvas, ms, 0, 0, mSurfaceWidth, mSurfaceHeight);
41 System.loadLibrary(
"jetski");
45 protected void onCreate(Bundle savedInstanceState) {
46 super.onCreate(savedInstanceState);
47 setContentView(
R.layout.activity_animation);
49 SurfaceView sv = findViewById(
R.id.surfaceView);
51 R.raw.runtime_shader1));
void onCreate(Bundle savedInstanceState)
RuntimeShaderRenderer(Resources res, int resID)
void onRenderFrame(Canvas canvas, long ms)
void onSurfaceInitialized(Surface surface)
void render(Canvas canvas, long ms, float left, float top, float right, float bottom)