#include <image_external_texture.h>
Definition at line 21 of file image_external_texture.h.
◆ AttachmentState
◆ ImageExternalTexture()
Definition at line 16 of file image_external_texture.cc.
std::shared_ptr< PlatformViewAndroidJNI > jni_facade_
fml::jni::ScopedJavaGlobalRef< jobject > image_texture_entry_
◆ ~ImageExternalTexture()
virtual flutter::ImageExternalTexture::~ImageExternalTexture |
( |
| ) |
|
|
virtualdefault |
◆ AcquireLatestImage()
JavaLocalRef flutter::ImageExternalTexture::AcquireLatestImage |
( |
| ) |
|
|
protected |
Definition at line 74 of file image_external_texture.cc.
74 {
77
78
80 jni_facade_->ImageProducerTextureEntryAcquireLatestImage(
82 return image_java;
83}
#define FML_CHECK(condition)
std::nullptr_t JavaLocalRef
JNIEnv * AttachCurrentThread()
◆ AHardwareBufferFor()
Definition at line 109 of file image_external_texture.cc.
110 {
113 const auto& proc =
115 return proc ? proc(
env, hardware_buffer.
obj()) : nullptr;
116}
const ProcTable & GetProcTable()
◆ Attach()
virtual void flutter::ImageExternalTexture::Attach |
( |
PaintContext & |
context | ) |
|
|
protectedpure virtual |
◆ CloseHardwareBuffer()
void flutter::ImageExternalTexture::CloseHardwareBuffer |
( |
const fml::jni::JavaRef< jobject > & |
hardware_buffer | ) |
|
|
protected |
◆ CloseImage()
void flutter::ImageExternalTexture::CloseImage |
( |
const fml::jni::JavaRef< jobject > & |
image | ) |
|
|
protected |
◆ Detach()
virtual void flutter::ImageExternalTexture::Detach |
( |
| ) |
|
|
protectedpure virtual |
◆ FML_DISALLOW_COPY_AND_ASSIGN()
◆ HardwareBufferFor()
◆ MarkNewFrameAvailable()
void flutter::ImageExternalTexture::MarkNewFrameAvailable |
( |
| ) |
|
|
overridevirtual |
◆ OnGrContextCreated()
void flutter::ImageExternalTexture::OnGrContextCreated |
( |
| ) |
|
|
overridevirtual |
◆ OnGrContextDestroyed()
void flutter::ImageExternalTexture::OnGrContextDestroyed |
( |
| ) |
|
|
overridevirtual |
◆ OnTextureUnregistered()
void flutter::ImageExternalTexture::OnTextureUnregistered |
( |
| ) |
|
|
overridevirtual |
◆ Paint()
Implements flutter::Texture.
Definition at line 25 of file image_external_texture.cc.
28 {
30 return;
31 }
33 const bool should_process_frame = !freeze;
34 if (should_process_frame) {
36 }
38 context.canvas->DrawImageRect(
43 context.paint,
45 );
46 } else {
47 FML_LOG(INFO) <<
"No DlImage available for ImageExternalTexture to paint.";
48 }
49}
virtual void ProcessFrame(PaintContext &context, const SkRect &bounds)=0
virtual void Attach(PaintContext &context)=0
#define FML_LOG(severity)
Optional< SkRect > bounds
SkSamplingOptions sampling
static SkRect Make(const SkISize &size)
◆ ProcessFrame()
virtual void flutter::ImageExternalTexture::ProcessFrame |
( |
PaintContext & |
context, |
|
|
const SkRect & |
bounds |
|
) |
| |
|
protectedpure virtual |
◆ dl_image_
◆ image_lru_
◆ image_texture_entry_
◆ jni_facade_
◆ state_
The documentation for this class was generated from the following files: