From 12add0082fa068571fd2167e83ed6b11dcc03f98 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 22 Sep 2026 14:05:56 -0400 Subject: [PATCH] distrib: Remove stub ANGLE binaries (see #3974) Chromium changed desktop builds to link ANGLE statically in https://crrev.com/f78f92beeb (M151). The remaining libEGL and libGLESv2 binaries are stubs (no exports, never loaded by Chromium) and should no longer be distributed. --- bazel/linux/variables.bzl | 3 --- bazel/win/variables.bzl | 2 -- cmake/cef_variables.cmake.in | 4 ---- docs/general_usage.md | 3 +-- docs/tutorial.md | 3 +-- libcef/common/resource_util.h | 6 +++--- tools/distrib/linux/README.redistrib.txt | 6 ------ tools/distrib/mac/README.redistrib.txt | 9 ++------- tools/distrib/win/README.redistrib.txt | 6 ------ tools/make_distrib.py | 8 -------- 10 files changed, 7 insertions(+), 43 deletions(-) diff --git a/bazel/linux/variables.bzl b/bazel/linux/variables.bzl index 4b674d3f2..876e8fbca 100755 --- a/bazel/linux/variables.bzl +++ b/bazel/linux/variables.bzl @@ -8,8 +8,6 @@ SOS = [ "libcef.so", - "libEGL.so", - "libGLESv2.so", "libvk_swiftshader.so", "libvulkan.so.1", ] @@ -65,4 +63,3 @@ COMMON_DEFINES_RELEASE = [ # Not a debug build "NDEBUG", ] - diff --git a/bazel/win/variables.bzl b/bazel/win/variables.bzl index d6d425eb8..24078a768 100644 --- a/bazel/win/variables.bzl +++ b/bazel/win/variables.bzl @@ -10,8 +10,6 @@ DLLS = [ "chrome_elf.dll", "d3dcompiler_47.dll", "libcef.dll", - "libEGL.dll", - "libGLESv2.dll", "vk_swiftshader.dll", "vulkan-1.dll", ] diff --git a/cmake/cef_variables.cmake.in b/cmake/cef_variables.cmake.in index ac7a25f7a..7175f3967 100644 --- a/cmake/cef_variables.cmake.in +++ b/cmake/cef_variables.cmake.in @@ -262,8 +262,6 @@ if(OS_LINUX) set(CEF_BINARY_FILES chrome-sandbox libcef.so - libEGL.so - libGLESv2.so libvk_swiftshader.so libvulkan.so.1 v8_context_snapshot.bin @@ -612,8 +610,6 @@ if(OS_WINDOWS) chrome_elf.dll d3dcompiler_47.dll libcef.dll - libEGL.dll - libGLESv2.dll v8_context_snapshot.bin vk_swiftshader.dll vk_swiftshader_icd.json diff --git a/docs/general_usage.md b/docs/general_usage.md index 68bc05d04..93a62d9e4 100644 --- a/docs/general_usage.md +++ b/docs/general_usage.md @@ -327,7 +327,6 @@ Application/ cefclient.exe <= cefclient application executable libcef.dll <= main CEF library icudtl.dat <= unicode support data - libEGL.dll, libGLESv2.dll, ... <= accelerated compositing support libraries chrome_100_percent.pak, chrome_200_percent.pak, resources.pak <= non-localized resources and strings snapshot_blob.bin, v8_context_snapshot.bin <= V8 initial snapshot locales/ @@ -1284,4 +1283,4 @@ bool MyHandler::GetAuthCredentials( } ``` -Web content loading during application startup can be delayed due to network proxy resolution (for example, if "Automatically detect proxy settings" is checked on Windows). For best user experience consider designing your application to first show a static splash page and then redirect to the actual website using [meta refresh](http://en.wikipedia.org/wiki/Meta_refresh) -- the redirect will be blocked until proxy resolution completes. For testing purposes proxy resolution can be disabled using the "--no-proxy-server" command-line flag. Proxy resolution delays can also be duplicated in Google Chrome by running "chrome --url=..." from the command line. \ No newline at end of file +Web content loading during application startup can be delayed due to network proxy resolution (for example, if "Automatically detect proxy settings" is checked on Windows). For best user experience consider designing your application to first show a static splash page and then redirect to the actual website using [meta refresh](http://en.wikipedia.org/wiki/Meta_refresh) -- the redirect will be blocked until proxy resolution completes. For testing purposes proxy resolution can be disabled using the "--no-proxy-server" command-line flag. Proxy resolution delays can also be duplicated in Google Chrome by running "chrome --url=..." from the command line. diff --git a/docs/tutorial.md b/docs/tutorial.md index 877f980b3..e21a2b419 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -147,7 +147,6 @@ Application/ cefsimple.exe <= cefsimple application executable libcef.dll <= main CEF library icudtl.dat <= unicode support data - libEGL.dll, libGLESv2.dll, ... <= accelerated compositing support libraries cef.pak, devtools_resources.pak, ... <= non-localized resources and strings natives_blob.bin, snapshot_blob.bin <= V8 initial snapshot locales/ @@ -261,4 +260,4 @@ Now that you understand the basics of CEF application structure, here are recomm Want help implementing additional features in your CEF application? The CEF project includes instructions for using Claude Code to assist with tasks like adding custom URL schemes, JavaScript-to-C++ communication, request interception, and more. -See the [CEF Client Development Guide](https://github.com/chromiumembedded/cef/blob/master/tools/claude/CLIENT_DEVELOPMENT.md) for step-by-step instructions. \ No newline at end of file +See the [CEF Client Development Guide](https://github.com/chromiumembedded/cef/blob/master/tools/claude/CLIENT_DEVELOPMENT.md) for step-by-step instructions. diff --git a/libcef/common/resource_util.h b/libcef/common/resource_util.h index aad65a9dc..cd43da56e 100644 --- a/libcef/common/resource_util.h +++ b/libcef/common/resource_util.h @@ -22,9 +22,9 @@ void OverrideUserDataDir(CefSettings* settings, const base::CommandLine* command_line); #if BUILDFLAG(IS_LINUX) -// Look for binary files (*.bin, *.dat, *.pak, chrome-sandbox, libGLESv2.so, -// libEGL.so, locales/*.pak, swiftshader/*.so) next to libcef instead of the exe -// on Linux. This is already the default on Windows. +// Look for binary files (*.bin, *.dat, *.pak, chrome-sandbox, locales/*.pak, +// swiftshader/*.so) next to libcef instead of the exe on Linux. This is already +// the default on Windows. void OverrideAssetPath(); #endif diff --git a/tools/distrib/linux/README.redistrib.txt b/tools/distrib/linux/README.redistrib.txt index 256900061..f6cd09946 100644 --- a/tools/distrib/linux/README.redistrib.txt +++ b/tools/distrib/linux/README.redistrib.txt @@ -46,12 +46,6 @@ run but any related functionality may become broken or disabled. These files contain non-localized resources used by CEF, Chromium and Blink. Without these files arbitrary Web components may display incorrectly. -* ANGLE support. - * libEGL.so - * libGLESv2.so - Support for rendering of HTML5 content like 2D canvas, 3D CSS and WebGL. - Without these files the aforementioned capabilities may fail. - * SwANGLE support. * libvk_swiftshader.so * libvulkan.so.1 diff --git a/tools/distrib/mac/README.redistrib.txt b/tools/distrib/mac/README.redistrib.txt index f70cf309c..c0b8a319d 100644 --- a/tools/distrib/mac/README.redistrib.txt +++ b/tools/distrib/mac/README.redistrib.txt @@ -15,8 +15,6 @@ cefclient.app │ ├── Chromium Embedded Framework.framework │ │ ├── Chromium Embedded Framework <= main application library │ │ ├── Libraries - │ │ │ ├── libEGL.dylib <= ANGLE support libraries - │ │ │ ├── libGLESv2.dylib <=^ │ │ │ ├── libvk_swiftshader.dylib <= SwANGLE support libraries │ │ │ └── vk_swiftshader_icd.json <=^ │ │ └── Resources @@ -108,12 +106,9 @@ run but any related functionality may become broken or disabled. These files contain non-localized resources used by CEF, Chromium and Blink. Without these files arbitrary Web components may display incorrectly. -* ANGLE support. - * Chromium Embedded Framework.framework/Libraries/libEGL.dylib - * Chromium Embedded Framework.framework/Libraries/libGLESv2.dylib +* ANGLE Metal shader cache. * Chromium Embedded Framework.framework/Resources/gpu_shader_cache.bin - Support for rendering of HTML5 content like 2D canvas, 3D CSS and WebGL. - Without these files the aforementioned capabilities may fail. + Precompiled shaders used by ANGLE's Metal backend. * SwANGLE support. * Chromium Embedded Framework.framework/Libraries/libvk_swiftshader.dylib diff --git a/tools/distrib/win/README.redistrib.txt b/tools/distrib/win/README.redistrib.txt index f8eb56411..ff106cdd8 100644 --- a/tools/distrib/win/README.redistrib.txt +++ b/tools/distrib/win/README.redistrib.txt @@ -61,12 +61,6 @@ run but any related functionality may become broken or disabled. Support for DirectX rendering of WebGPU. Without these files the aforementioned capabilities may fail. -* ANGLE support. - * libEGL.dll - * libGLESv2.dll - Support for rendering of HTML5 content like 2D canvas, 3D CSS and WebGL. - Without these files the aforementioned capabilities may fail. - * SwANGLE support. * vk_swiftshader.dll * vk_swiftshader_icd.json diff --git a/tools/make_distrib.py b/tools/make_distrib.py index 2b80a2d4a..08c27898a 100644 --- a/tools/make_distrib.py +++ b/tools/make_distrib.py @@ -1143,8 +1143,6 @@ def main(argv=None): {'path': 'dxcompiler.dll', 'conditional': True}, {'path': 'dxil.dll', 'conditional': True}, {'path': libcef_dll}, - {'path': 'libEGL.dll'}, - {'path': 'libGLESv2.dll'}, {'path': 'v8_context_snapshot.bin'}, {'path': 'vk_swiftshader.dll'}, {'path': 'vk_swiftshader_icd.json'}, @@ -1154,8 +1152,6 @@ def main(argv=None): {'path': 'chrome_elf.dll.pdb'}, {'path': 'dxcompiler.dll.pdb', 'conditional': True}, {'path': '%s.pdb' % libcef_dll}, - {'path': 'libEGL.dll.pdb'}, - {'path': 'libGLESv2.dll.pdb'}, {'path': 'vk_swiftshader.dll.pdb'}, {'path': 'vulkan-1.dll.pdb'}, ] @@ -1327,8 +1323,6 @@ def main(argv=None): dsym_dirs = [ '%s.dSYM' % framework_name, - 'libEGL.dylib.dSYM', - 'libGLESv2.dylib.dSYM', 'libvk_swiftshader.dylib.dSYM', ] @@ -1496,8 +1490,6 @@ def main(argv=None): binaries = [ {'path': 'chrome_sandbox', 'out_path': 'chrome-sandbox'}, {'path': libcef_so}, - {'path': 'libEGL.so'}, - {'path': 'libGLESv2.so'}, {'path': 'libvk_swiftshader.so'}, {'path': 'libvulkan.so.1'}, {'path': 'v8_context_snapshot.bin'},