Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Unified Diff: gpu/ipc/service/gpu_channel_manager.cc

Issue 2267163003: Re-enable program memory cache for Adreno 4/5xx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/ipc/service/gpu_channel_manager.cc
diff --git a/gpu/ipc/service/gpu_channel_manager.cc b/gpu/ipc/service/gpu_channel_manager.cc
index 6d3f7b6bf82f93171944aa4ace5cd9f53058d45a..8abdb3a727804d0df61464fdc1b87eeeeec10d02 100644
--- a/gpu/ipc/service/gpu_channel_manager.cc
+++ b/gpu/ipc/service/gpu_channel_manager.cc
@@ -87,9 +87,11 @@ gles2::ProgramCache* GpuChannelManager::program_cache() {
(gl::g_driver_gl.ext.b_GL_ARB_get_program_binary ||
gl::g_driver_gl.ext.b_GL_OES_get_program_binary) &&
!gpu_preferences_.disable_gpu_program_cache) {
+ bool disable_disk_cache =
+ gpu_preferences_.disable_gpu_shader_disk_cache ||
+ gpu_driver_bug_workarounds_.disable_program_disk_cache;
program_cache_.reset(new gles2::MemoryProgramCache(
- gpu_preferences_.gpu_program_cache_size,
- gpu_preferences_.disable_gpu_shader_disk_cache));
+ gpu_preferences_.gpu_program_cache_size, disable_disk_cache));
}
return program_cache_.get();
}
« gpu/config/gpu_driver_bug_list_json.cc ('K') | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698