mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy: Don't create GPUCache directory when cache_path is empty (fixes #3617)
This commit is contained in:
@@ -721,5 +721,10 @@ patches = [
|
|||||||
# chrome: mac: Support locale configuration.
|
# chrome: mac: Support locale configuration.
|
||||||
# https://github.com/chromiumembedded/cef/issues/3623
|
# https://github.com/chromiumembedded/cef/issues/3623
|
||||||
'name': 'mac_chrome_locale_3623'
|
'name': 'mac_chrome_locale_3623'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
# alloy: Don't create GPUCache directory when cache_path is empty.
|
||||||
|
# https://github.com/chromiumembedded/cef/issues/3617
|
||||||
|
'name': 'content_renderer_host_3617'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
14
patch/patches/content_renderer_host_3617.patch
Normal file
14
patch/patches/content_renderer_host_3617.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
diff --git content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_impl.cc
|
||||||
|
index 67b608870e591..f8f47a606ea51 100644
|
||||||
|
--- content/browser/renderer_host/render_process_host_impl.cc
|
||||||
|
+++ content/browser/renderer_host/render_process_host_impl.cc
|
||||||
|
@@ -1614,7 +1614,8 @@ bool RenderProcessHostImpl::Init() {
|
||||||
|
// initialized because in tests the factory may never have been initialized.
|
||||||
|
if (!GetBrowserContext()->IsOffTheRecord() &&
|
||||||
|
!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
||||||
|
- switches::kDisableGpuShaderDiskCache)) {
|
||||||
|
+ switches::kDisableGpuShaderDiskCache) &&
|
||||||
|
+ !storage_partition_impl_->GetPath().empty()) {
|
||||||
|
if (auto* cache_factory = GetGpuDiskCacheFactorySingleton()) {
|
||||||
|
for (const gpu::GpuDiskCacheType type : gpu::kGpuDiskCacheTypes) {
|
||||||
|
auto handle = cache_factory->GetCacheHandle(
|
Reference in New Issue
Block a user