Fix the Mac embedder build (flutter/engine#6525)

This commit is contained in:
Jason Simmons
2018-10-12 16:24:54 -07:00
committed by GitHub
parent b4a9605fce
commit 52acaa8b5e

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,