diff --git a/shell/platform/embedder/embedder.cc b/shell/platform/embedder/embedder.cc index 95de24aa1f272..b8483616b1464 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,