Flutter Engine
The Flutter Engine
|
#include <surface_texture_external_texture.h>
Public Member Functions | |
SurfaceTextureExternalTexture (int64_t id, const fml::jni::ScopedJavaGlobalRef< jobject > &surface_texture, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade) | |
~SurfaceTextureExternalTexture () override | |
void | Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling) override |
void | OnGrContextCreated () override |
void | OnGrContextDestroyed () override |
void | MarkNewFrameAvailable () override |
void | OnTextureUnregistered () 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 |
Protected Types | |
enum class | AttachmentState { kUninitialized , kAttached , kDetached } |
Protected Member Functions | |
virtual void | ProcessFrame (PaintContext &context, const SkRect &bounds)=0 |
virtual void | Detach () |
void | Attach (int gl_tex_id) |
bool | ShouldUpdate () |
void | Update () |
FML_DISALLOW_COPY_AND_ASSIGN (SurfaceTextureExternalTexture) | |
Protected Attributes | |
std::shared_ptr< PlatformViewAndroidJNI > | jni_facade_ |
fml::jni::ScopedJavaGlobalRef< jobject > | surface_texture_ |
AttachmentState | state_ = AttachmentState::kUninitialized |
SkMatrix | transform_ |
sk_sp< flutter::DlImage > | dl_image_ |
Definition at line 16 of file surface_texture_external_texture.h.
|
strongprotected |
Enumerator | |
---|---|
kUninitialized | |
kAttached | |
kDetached |
Definition at line 46 of file surface_texture_external_texture.h.
flutter::SurfaceTextureExternalTexture::SurfaceTextureExternalTexture | ( | int64_t | id, |
const fml::jni::ScopedJavaGlobalRef< jobject > & | surface_texture, | ||
const std::shared_ptr< PlatformViewAndroidJNI > & | jni_facade | ||
) |
Definition at line 24 of file surface_texture_external_texture.cc.
|
override |
Definition at line 33 of file surface_texture_external_texture.cc.
|
protected |
Definition at line 100 of file surface_texture_external_texture.cc.
|
protectedvirtual |
Reimplemented in flutter::SurfaceTextureExternalTextureGL, and flutter::SurfaceTextureExternalTextureImpellerGL.
Definition at line 94 of file surface_texture_external_texture.cc.
|
protected |
|
overridevirtual |
Implements flutter::Texture.
Definition at line 39 of file surface_texture_external_texture.cc.
|
overridevirtual |
Implements flutter::ContextListener.
Definition at line 35 of file surface_texture_external_texture.cc.
|
overridevirtual |
Implements flutter::ContextListener.
Definition at line 85 of file surface_texture_external_texture.cc.
|
overridevirtual |
Implements flutter::Texture.
Definition at line 92 of file surface_texture_external_texture.cc.
|
overridevirtual |
Implements flutter::Texture.
Definition at line 43 of file surface_texture_external_texture.cc.
|
protectedpure virtual |
Implemented in flutter::SurfaceTextureExternalTextureGL, and flutter::SurfaceTextureExternalTextureImpellerGL.
|
protected |
Definition at line 106 of file surface_texture_external_texture.cc.
|
protected |
Definition at line 111 of file surface_texture_external_texture.cc.
|
protected |
Definition at line 52 of file surface_texture_external_texture.h.
|
protected |
Definition at line 48 of file surface_texture_external_texture.h.
|
protected |
Definition at line 50 of file surface_texture_external_texture.h.
|
protected |
Definition at line 49 of file surface_texture_external_texture.h.
|
protected |
Definition at line 51 of file surface_texture_external_texture.h.