Fix the Mac embedder build (#6525)

This commit is contained in:
Jason Simmons 2018-10-12 16:24:54 -07:00 committed by GitHub
parent 436f9707b9
commit 75e875240e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,8 @@ static bool IsRendererValid(const FlutterRendererConfig* config) {
return false;
}
#if OS_LINUX || OS_WIN
static void* DefaultGLProcResolver(const char* name) {
static fml::RefPtr<fml::NativeLibrary> proc_library =
fml::NativeLibrary::CreateForCurrentProcess();
@ -96,6 +98,8 @@ static void* DefaultGLProcResolver(const char* name) {
const_cast<uint8_t*>(proc_library->ResolveSymbol(name)));
}
#endif // OS_LINUX || OS_WIN
static shell::Shell::CreateCallback<shell::PlatformView>
InferOpenGLPlatformViewCreationCallback(
const FlutterRendererConfig* config,