#include <embedder.h>
Public Attributes | |
| size_t | struct_size |
| The size of this struct. Must be sizeof(FlutterMetalTexture). | |
| int64_t | texture_id |
| FlutterMetalTextureHandle | texture |
| void * | user_data |
| VoidCallback | destruction_callback |
Definition at line 853 of file embedder.h.
| VoidCallback FlutterMetalTexture::destruction_callback |
The callback invoked by the engine when it no longer needs this backing store.
Definition at line 872 of file embedder.h.
Referenced by flutter::testing::EmbedderTestBackingStoreProducerMetal::Create(), InferMetalPlatformViewCreationCallback(), MakeRenderTargetFromBackingStoreImpeller(), and MakeSkSurfaceFromBackingStore().
| size_t FlutterMetalTexture::struct_size |
The size of this struct. Must be sizeof(FlutterMetalTexture).
Definition at line 855 of file embedder.h.
Referenced by flutter::testing::EmbedderTestContextMetal::GetNextDrawable(), InferMetalPlatformViewCreationCallback(), and flutter::testing::TEST_F().
| FlutterMetalTextureHandle FlutterMetalTexture::texture |
Handle to the MTLTexture that is owned by the embedder. Engine will render the frame into this texture.
A NULL texture is considered invalid.
Definition at line 865 of file embedder.h.
Referenced by flutter::testing::EmbedderTestBackingStoreProducerMetal::Create(), InferMetalPlatformViewCreationCallback(), MakeRenderTargetFromBackingStoreImpeller(), MakeSkSurfaceFromBackingStore(), operator<<(), and operator==().
| int64_t FlutterMetalTexture::texture_id |
Embedder provided unique identifier to the texture buffer. Given that the texture handle is passed to the engine to render to, the texture buffer is itself owned by the embedder. This texture_id is then also given to the embedder in the present callback.
Definition at line 860 of file embedder.h.
Referenced by InferMetalPlatformViewCreationCallback(), operator<<(), operator==(), and flutter::testing::TEST().
| void* FlutterMetalTexture::user_data |
A baton that is not interpreted by the engine in any way. It will be given back to the embedder in the destruction callback below. Embedder resources may be associated with this baton.
Definition at line 869 of file embedder.h.
Referenced by flutter::testing::EmbedderTestBackingStoreProducerMetal::Create(), InferMetalPlatformViewCreationCallback(), MakeRenderTargetFromBackingStoreImpeller(), and MakeSkSurfaceFromBackingStore().