Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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 {
31 return [engine.renderer populateTextureWithIdentifier:textureIdentifier
32 metalTexture:metalTexture];
33}
FlutterEngine engine
Definition main.cc:84

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