void MarkNewFrameAvailable() override
FML_DISALLOW_COPY_AND_ASSIGN(ImageExternalTexture)
virtual ~ImageExternalTexture()=default
AHardwareBuffer * AHardwareBufferFor(const fml::jni::JavaRef< jobject > &hardware_buffer)
JavaLocalRef HardwareBufferFor(const fml::jni::JavaRef< jobject > &image)
void OnTextureUnregistered() override
virtual void ProcessFrame(PaintContext &context, const SkRect &bounds)=0
void CloseHardwareBuffer(const fml::jni::JavaRef< jobject > &hardware_buffer)
sk_sp< flutter::DlImage > dl_image_
void CloseImage(const fml::jni::JavaRef< jobject > &image)
void OnGrContextDestroyed() override
virtual void Attach(PaintContext &context)=0
std::shared_ptr< PlatformViewAndroidJNI > jni_facade_
ImageExternalTexture(int64_t id, const fml::jni::ScopedJavaGlobalRef< jobject > &image_texture_entry, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade)
void Paint(PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling) override
JavaLocalRef AcquireLatestImage()
fml::jni::ScopedJavaGlobalRef< jobject > image_texture_entry_
void OnGrContextCreated() override