Flutter macOS Embedder
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 }

References user_data.

Referenced by FlutterRenderer::createRendererConfig.

◆ 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 }

Referenced by FlutterRenderer::createRendererConfig.

◆ 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 }

Referenced by FlutterRenderer::createRendererConfig.

FlutterEngine
Definition: FlutterEngine.h:30
user_data
void * user_data
Definition: texture_registrar_unittests.cc:27