void ProcessFrame(PaintContext &context, const SkRect &bounds) override
Subclasses override this method to bind the latest representation of the hardware buffer wrapped by t...
void UpdateImage(JavaLocalRef &hardware_buffer, const SkRect &bounds, PaintContext &context)
virtual sk_sp< flutter::DlImage > CreateDlImage(PaintContext &context, const SkRect &bounds, std::optional< HardwareBufferKey > id, impeller::UniqueEGLImageKHR &&egl_image)=0
impeller::UniqueEGLImageKHR CreateEGLImage(AHardwareBuffer *buffer)
FML_DISALLOW_COPY_AND_ASSIGN(ImageExternalTextureGL)
std::unordered_map< HardwareBufferKey, GlEntry > gl_entries_
void Attach(PaintContext &context) override
External texture peered to a sequence of android.hardware.HardwareBuffers.
ImageLifecycle
Whether the last image should be reset when the context is destroyed.
impeller::UniqueGLTexture texture
impeller::UniqueEGLImageKHR egl_image