From 75e875240e21daa0342aecf38efbc35098c553da Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 12 Oct 2018 16:24:54 -0700 Subject: [PATCH] Fix the Mac embedder build (#6525) --- shell/platform/embedder/embedder.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/platform/embedder/embedder.cc b/shell/platform/embedder/embedder.cc index 95de24aa1f2..b8483616b14 100644 --- a/shell/platform/embedder/embedder.cc +++ b/shell/platform/embedder/embedder.cc @@ -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 proc_library = fml::NativeLibrary::CreateForCurrentProcess(); @@ -96,6 +98,8 @@ static void* DefaultGLProcResolver(const char* name) { const_cast(proc_library->ResolveSymbol(name))); } +#endif // OS_LINUX || OS_WIN + static shell::Shell::CreateCallback InferOpenGLPlatformViewCreationCallback( const FlutterRendererConfig* config,