External texture peered to a sequence of android.hardware.HardwareBuffers.
AHardwareBuffer * AHardwareBufferFor(const fml::jni::JavaRef< jobject > &hardware_buffer)
JavaLocalRef HardwareBufferFor(const fml::jni::JavaRef< jobject > &image)
virtual ~ImageExternalTexture()
virtual void ProcessFrame(PaintContext &context, const SkRect &bounds)=0
Subclasses override this method to bind the latest representation of the hardware buffer wrapped by t...
void CloseHardwareBuffer(const fml::jni::JavaRef< jobject > &hardware_buffer)
sk_sp< flutter::DlImage > dl_image_
void CloseImage(const fml::jni::JavaRef< jobject > &image)
virtual void Attach(PaintContext &context)=0
std::shared_ptr< PlatformViewAndroidJNI > jni_facade_
JavaLocalRef AcquireLatestImage()
fml::jni::ScopedJavaGlobalRef< jobject > image_texture_entry_
ImageLifecycle
Whether the last image should be reset when the context is destroyed.