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 8758a5acf69663579a228f4539730bbbfa1f1057..d37e06f7da6b3f1ad820f802873ffafdfa1fe745 100644 |
--- a/gpu/ipc/service/gpu_channel_manager.cc |
+++ b/gpu/ipc/service/gpu_channel_manager.cc |
@@ -87,11 +87,14 @@ 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) { |
+ const GpuDriverBugWorkarounds& workarounds = gpu_driver_bug_workarounds_; |
bool disable_disk_cache = |
gpu_preferences_.disable_gpu_shader_disk_cache || |
- gpu_driver_bug_workarounds_.disable_program_disk_cache; |
+ workarounds.disable_program_disk_cache; |
program_cache_.reset(new gles2::MemoryProgramCache( |
- gpu_preferences_.gpu_program_cache_size, disable_disk_cache)); |
+ gpu_preferences_.gpu_program_cache_size, |
+ disable_disk_cache, |
+ workarounds.disable_program_caching_for_transform_feedback)); |
} |
return program_cache_.get(); |
} |