Instances of external textures peered to android.graphics.SurfaceTexture.
AttachmentState
Specifies how this instance is bound to the underlying surface texture.
virtual void DrawFrame(PaintContext &context, const SkRect &bounds, const DlImageSampling sampling) const
~SurfaceTextureExternalTexture() override
sk_sp< flutter::DlImage > dl_image_
fml::jni::ScopedJavaGlobalRef< jobject > surface_texture_
void Attach(int gl_tex_id)
Attaches the given OpenGL texture handle to the surface texture via a bind operation.
std::shared_ptr< PlatformViewAndroidJNI > jni_facade_
virtual void ProcessFrame(PaintContext &context, const SkRect &bounds)=0
Subclasses override this method to bind the OpenGL texture resource represented by this surface textu...
const SkM44 & GetCurrentUVTransformation() const
Get the transformation that should be applied to the UV texture coordinates when sampling from this t...
virtual void Detach()
Provides an opportunity for the subclasses to sever the connection between the OpenGL texture resourc...
void Update()
Update the surface texture contents and transformation matrix.