Source: Ubuntu
Upstream: No
https://bazaar.launchpad.net/~chromium-team/chromium-browser/cosmic-dev/view/1454/debian/patches/swiftshader-default-visibility.patch

Description: partially revert https://swiftshader.googlesource.com/SwiftShader.git/+/c4972610c38bcf8478016572a92843f165d9bfb4
 to fix a build failure on cosmic/amd64 (which has binutils 2.31).
Bug-Ubuntu: https://launchpad.net/bugs/1784397
Author: Olivier Tilloy <olivier.tilloy@canonical.com>

--- third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
+++ third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn
@@ -55,7 +55,7 @@ config("swiftshader_libGLESv2_private_co
       cflags += [ "-fvisibility=protected" ]
       defines += [ "GL_APICALL=__attribute__((no_sanitize(\"function\")))" ]
     } else {
-      defines += [ "GL_APICALL=__attribute__((visibility(\"protected\"))) __attribute__((no_sanitize(\"function\")))" ]
+      defines += [ "GL_APICALL=__attribute__((visibility(\"default\"))) __attribute__((no_sanitize(\"function\")))" ]
     }
   }
 }
