Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ - (NSString*)lookupKeyForAsset:(NSString*)asset fromPackage:(NSString*)package {
// Callbacks provided to the engine. See the called methods for documentation.
#pragma mark - Static methods provided to engine configuration

static void OnPlatformMessage(const FlutterPlatformMessage* message, FlutterEngine* engine) {
static void OnPlatformMessage(const FlutterPlatformMessage* message, void* user_data) {
FlutterEngine* engine = (__bridge FlutterEngine*)user_data;
[engine engineCallbackOnPlatformMessage:message];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@

#pragma mark - Static callbacks that require the engine.

static FlutterMetalTexture OnGetNextDrawable(FlutterEngine* engine,
const FlutterFrameInfo* frameInfo) {
static FlutterMetalTexture OnGetNextDrawable(void* user_data, const FlutterFrameInfo* frameInfo) {
NSCAssert(NO, @"The renderer config should not be used to get the next drawable.");
return FlutterMetalTexture{};
}

static bool OnPresentDrawable(FlutterEngine* engine, const FlutterMetalTexture* texture) {
static bool OnPresentDrawable(void* user_data, const FlutterMetalTexture* texture) {
NSCAssert(NO, @"The renderer config should not be used to present drawable.");
return false;
}

static bool OnAcquireExternalTexture(FlutterEngine* engine,
static bool OnAcquireExternalTexture(void* user_data,
int64_t textureIdentifier,
size_t width,
size_t height,
FlutterMetalExternalTexture* metalTexture) {
FlutterEngine* engine = (__bridge FlutterEngine*)user_data;
return [engine.renderer populateTextureWithIdentifier:textureIdentifier
metalTexture:metalTexture];
}
Expand Down