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

Unified Diff: trunk/src/gpu/command_buffer/service/memory_program_cache.cc

Issue 13924005: Revert 193798 "Revert r192949 "Disable shader disk cache by defa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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: trunk/src/gpu/command_buffer/service/memory_program_cache.cc
===================================================================
--- trunk/src/gpu/command_buffer/service/memory_program_cache.cc (revision 194502)
+++ trunk/src/gpu/command_buffer/service/memory_program_cache.cc (working copy)
@@ -142,8 +142,8 @@
shader_b->set_uniform_map(value->uniform_map_1);
if (!shader_callback.is_null() &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableGpuShaderDiskCache)) {
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGpuShaderDiskCache)) {
GpuProgramProto* proto = GpuProgramProto::default_instance().New();
proto->set_sha(sha, kHashLength);
proto->set_format(value->format);
@@ -212,8 +212,8 @@
}
if (!shader_callback.is_null() &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableGpuShaderDiskCache)) {
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGpuShaderDiskCache)) {
GpuProgramProto* proto = GpuProgramProto::default_instance().New();
proto->set_sha(sha, kHashLength);
proto->set_format(format);

Powered by Google App Engine
This is Rietveld 408576698