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

Side by Side Diff: gpu/command_buffer/service/gpu_switches.cc

Issue 13800013: Disable shader disk cache by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gpu_switches.h" 5 #include "gpu/command_buffer/service/gpu_switches.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 7
8 namespace switches { 8 namespace switches {
9 9
10 // Always return success when compiling a shader. Linking will still fail. 10 // Always return success when compiling a shader. Linking will still fail.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Pass a set of GpuDriverBugWorkaroundType ids, seperated by ','. 54 // Pass a set of GpuDriverBugWorkaroundType ids, seperated by ','.
55 const char kGpuDriverBugWorkarounds[] = "gpu-driver-bug-workarounds"; 55 const char kGpuDriverBugWorkarounds[] = "gpu-driver-bug-workarounds";
56 56
57 // Sets the maximum size of the in-memory gpu program cache, in kb 57 // Sets the maximum size of the in-memory gpu program cache, in kb
58 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; 58 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb";
59 59
60 const char kTraceGL[] = "trace-gl"; 60 const char kTraceGL[] = "trace-gl";
61 61
62 // Disables the GPU shader on disk cache. 62 // Disables the GPU shader on disk cache.
63 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; 63 const char kEnableGpuShaderDiskCache[] = "enable-gpu-shader-disk-cache";
64 64
65 const char* kGpuSwitches[] = { 65 const char* kGpuSwitches[] = {
66 kCompileShaderAlwaysSucceeds, 66 kCompileShaderAlwaysSucceeds,
67 kDisableGLErrorLimit, 67 kDisableGLErrorLimit,
68 kDisableGLSLTranslator, 68 kDisableGLSLTranslator,
69 kDisableGpuDriverBugWorkarounds, 69 kDisableGpuDriverBugWorkarounds,
70 kDisableShaderNameHashing, 70 kDisableShaderNameHashing,
71 kEnableGPUCommandLogging, 71 kEnableGPUCommandLogging,
72 kEnableGPUDebugging, 72 kEnableGPUDebugging,
73 kEnableGPUServiceLoggingGPU, 73 kEnableGPUServiceLoggingGPU,
74 kDisableGpuProgramCache, 74 kDisableGpuProgramCache,
75 kEnforceGLMinimums, 75 kEnforceGLMinimums,
76 kForceGLFinishWorkaround, 76 kForceGLFinishWorkaround,
77 kForceGpuMemAvailableMb, 77 kForceGpuMemAvailableMb,
78 kForceSynchronousGLReadPixels, 78 kForceSynchronousGLReadPixels,
79 kGpuDriverBugWorkarounds, 79 kGpuDriverBugWorkarounds,
80 kGpuProgramCacheSizeKb, 80 kGpuProgramCacheSizeKb,
81 kTraceGL, 81 kTraceGL,
82 kDisableGpuShaderDiskCache, 82 kEnableGpuShaderDiskCache,
83 }; 83 };
84 84
85 const int kNumGpuSwitches = arraysize(kGpuSwitches); 85 const int kNumGpuSwitches = arraysize(kGpuSwitches);
86 86
87 } // namespace switches 87 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/memory_program_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698