Flutter macOS Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
FlutterRenderer.mm File Reference

Go to the source code of this file.

Functions

static FlutterMetalTexture OnGetNextDrawable (void *user_data, const FlutterFrameInfo *frameInfo)
 
static bool OnPresentDrawable (void *user_data, const FlutterMetalTexture *texture)
 
static bool OnAcquireExternalTexture (void *user_data, int64_t textureIdentifier, size_t width, size_t height, FlutterMetalExternalTexture *metalTexture)
 

Function Documentation

◆ OnAcquireExternalTexture()

static bool OnAcquireExternalTexture ( void *  user_data,
int64_t  textureIdentifier,
size_t  width,
size_t  height,
FlutterMetalExternalTexture *  metalTexture 
)
static

Definition at line 25 of file FlutterRenderer.mm.

29  {
30  FlutterEngine* engine = (__bridge FlutterEngine*)user_data;
31  return [engine.renderer populateTextureWithIdentifier:textureIdentifier
32  metalTexture:metalTexture];
33 }
void * user_data

◆ OnGetNextDrawable()

static FlutterMetalTexture OnGetNextDrawable ( void *  user_data,
const FlutterFrameInfo *  frameInfo 
)
static

Definition at line 15 of file FlutterRenderer.mm.

15  {
16  NSCAssert(NO, @"The renderer config should not be used to get the next drawable.");
17  return FlutterMetalTexture{};
18 }

◆ OnPresentDrawable()

static bool OnPresentDrawable ( void *  user_data,
const FlutterMetalTexture *  texture 
)
static

Definition at line 20 of file FlutterRenderer.mm.

20  {
21  NSCAssert(NO, @"The renderer config should not be used to present drawable.");
22  return false;
23 }