8#ifndef JetSki_Surface_DEFINED
9#define JetSki_Surface_DEFINED
15#include <android/native_window_jni.h>
51 void release(JNIEnv*
env)
override;
53 void flushAndSubmit()
override;
56 std::unique_ptr<skwindow::WindowContext> fWindowContext;
64 void release(JNIEnv*
env)
override;
66 void flushAndSubmit()
override;
70 std::unique_ptr<SurfaceThread> fThread;
sk_sp< SkImage > makeImageSnapshot()
virtual SkCanvas * getCanvas()=0
virtual void release(JNIEnv *)=0
sk_sp< SkSurface > fSurface
virtual void flushAndSubmit()=0
sk_sp< SkImage > makeImageSnapshot() const
ThreadedSurface(JNIEnv *env, jobject surface)
WindowSurface(ANativeWindow *win, std::unique_ptr< skwindow::WindowContext > wctx)
struct ANativeWindow ANativeWindow