Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::ImageExternalTextureVK Class Reference

#include <image_external_texture_vk.h>

Inheritance diagram for flutter::ImageExternalTextureVK:
flutter::ImageExternalTexture flutter::Texture flutter::ContextListener

Public Member Functions

 ImageExternalTextureVK (const std::shared_ptr< impeller::ContextVK > &impeller_context, int64_t id, const fml::jni::ScopedJavaGlobalRef< jobject > &hardware_buffer_texture_entry, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade)
 
 ~ImageExternalTextureVK () override
 
- Public Member Functions inherited from flutter::ImageExternalTexture
 ImageExternalTexture (int64_t id, const fml::jni::ScopedJavaGlobalRef< jobject > &image_texture_entry, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade)
 
virtual ~ImageExternalTexture ()=default
 
void Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling) override
 
void MarkNewFrameAvailable () override
 
void OnTextureUnregistered () override
 
void OnGrContextCreated () override
 
void OnGrContextDestroyed () override
 
- Public Member Functions inherited from flutter::Texture
 Texture (int64_t id)
 
virtual ~Texture ()
 
virtual void Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling)=0
 
virtual void MarkNewFrameAvailable ()=0
 
virtual void OnTextureUnregistered ()=0
 
int64_t Id ()
 
- Public Member Functions inherited from flutter::ContextListener
 ContextListener ()
 
 ~ContextListener ()
 
virtual void OnGrContextCreated ()=0
 
virtual void OnGrContextDestroyed ()=0
 

Additional Inherited Members

- Protected Types inherited from flutter::ImageExternalTexture
enum class  AttachmentState { kUninitialized , kAttached , kDetached }
 
- Protected Member Functions inherited from flutter::ImageExternalTexture
virtual void Attach (PaintContext &context)=0
 
virtual void Detach ()=0
 
virtual void ProcessFrame (PaintContext &context, const SkRect &bounds)=0
 
JavaLocalRef AcquireLatestImage ()
 
void CloseImage (const fml::jni::JavaRef< jobject > &image)
 
JavaLocalRef HardwareBufferFor (const fml::jni::JavaRef< jobject > &image)
 
void CloseHardwareBuffer (const fml::jni::JavaRef< jobject > &hardware_buffer)
 
AHardwareBufferAHardwareBufferFor (const fml::jni::JavaRef< jobject > &hardware_buffer)
 
 FML_DISALLOW_COPY_AND_ASSIGN (ImageExternalTexture)
 
- Protected Attributes inherited from flutter::ImageExternalTexture
fml::jni::ScopedJavaGlobalRef< jobject > image_texture_entry_
 
std::shared_ptr< PlatformViewAndroidJNIjni_facade_
 
AttachmentState state_ = AttachmentState::kUninitialized
 
sk_sp< flutter::DlImagedl_image_
 
ImageLRU image_lru_ = ImageLRU()
 

Detailed Description

Definition at line 19 of file image_external_texture_vk.h.

Constructor & Destructor Documentation

◆ ImageExternalTextureVK()

flutter::ImageExternalTextureVK::ImageExternalTextureVK ( const std::shared_ptr< impeller::ContextVK > &  impeller_context,
int64_t  id,
const fml::jni::ScopedJavaGlobalRef< jobject > &  hardware_buffer_texture_entry,
const std::shared_ptr< PlatformViewAndroidJNI > &  jni_facade 
)

Definition at line 20 of file image_external_texture_vk.cc.

25 : ImageExternalTexture(id, image_texture_entry, jni_facade),
26 impeller_context_(impeller_context) {}
ImageExternalTexture(int64_t id, const fml::jni::ScopedJavaGlobalRef< jobject > &image_texture_entry, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade)

◆ ~ImageExternalTextureVK()

flutter::ImageExternalTextureVK::~ImageExternalTextureVK ( )
override

Definition at line 28 of file image_external_texture_vk.cc.

28{}

The documentation for this class was generated from the following files: