An external texture implementation for Vulkan that uses OpenGL to Vulkan texture interop to read SurfaceTexture based image data and render it into a Vulkan texture. More...
#include <surface_texture_external_texture_vk_impeller.h>
Additional Inherited Members | |
Protected Types inherited from flutter::SurfaceTextureExternalTexture | |
| enum class | AttachmentState { kUninitialized , kAttached , kDetached } |
| Specifies how this instance is bound to the underlying surface texture. More... | |
Protected Member Functions inherited from flutter::SurfaceTextureExternalTexture | |
| const SkM44 & | GetCurrentUVTransformation () const |
| Get the transformation that should be applied to the UV texture coordinates when sampling from this texture. | |
| void | Attach (int gl_tex_id) |
| Attaches the given OpenGL texture handle to the surface texture via a bind operation. | |
| bool | ShouldUpdate () |
| void | Update () |
| Update the surface texture contents and transformation matrix. | |
Protected Attributes inherited from flutter::SurfaceTextureExternalTexture | |
| std::shared_ptr< PlatformViewAndroidJNI > | jni_facade_ |
| fml::jni::ScopedJavaGlobalRef< jobject > | surface_texture_ |
| AttachmentState | state_ = AttachmentState::kUninitialized |
| sk_sp< flutter::DlImage > | dl_image_ |
An external texture implementation for Vulkan that uses OpenGL to Vulkan texture interop to read SurfaceTexture based image data and render it into a Vulkan texture.
Unlike other zero-copy implementations, the OpenGL to Vulkan texture interop has the additional overhead of one device-device copy and allocates one offscreen texture. For this reason, one of the "Image" based external texture implementations are a recommended replacement for this class. For example ImageExternalTextureVKImpeller.
This implementation is used only as a fallback during the migration away from the SurfaceTexture based plugin APIs. For more information about the plugin API migration, see https://docs.flutter.dev/release/breaking-changes/android-surface-plugins.
ImageExternalTextureVKImpeller Definition at line 39 of file surface_texture_external_texture_vk_impeller.h.
| flutter::SurfaceTextureExternalTextureVKImpeller::SurfaceTextureExternalTextureVKImpeller | ( | std::shared_ptr< impeller::ContextVK > | context, |
| 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_vk_impeller.cc.
|
overridedefault |
|
delete |
|
delete |