OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; | 38 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; |
39 | 39 |
40 // Enforce GL minimums. | 40 // Enforce GL minimums. |
41 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; | 41 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; |
42 | 42 |
43 // Force the use of a workaround for graphics hangs seen on certain | 43 // Force the use of a workaround for graphics hangs seen on certain |
44 // Mac OS systems. Enabled by default (and can't be disabled) on known | 44 // Mac OS systems. Enabled by default (and can't be disabled) on known |
45 // affected systems. | 45 // affected systems. |
46 const char kForceGLFinishWorkaround[] = "force-glfinish-workaround"; | 46 const char kForceGLFinishWorkaround[] = "force-glfinish-workaround"; |
47 | 47 |
48 // Disable the nonuniform GPU memory memory and instead use the scheme that | |
49 // distributes memory uniformly to all visible renderers. | |
50 const char kDisableNonuniformGpuMemPolicy[] = | |
51 "disable-nonuniform-gpu-mem-policy"; | |
52 | |
53 // Sets the total amount of memory that may be allocated for GPU resources | 48 // Sets the total amount of memory that may be allocated for GPU resources |
54 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; | 49 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; |
55 | 50 |
56 // Sets the maximum size of the in-memory gpu program cache, in kb | 51 // Sets the maximum size of the in-memory gpu program cache, in kb |
57 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; | 52 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; |
58 | 53 |
59 const char kTraceGL[] = "trace-gl"; | 54 const char kTraceGL[] = "trace-gl"; |
60 | 55 |
61 const char* kGpuSwitches[] = { | 56 const char* kGpuSwitches[] = { |
62 kCompileShaderAlwaysSucceeds, | 57 kCompileShaderAlwaysSucceeds, |
63 kDisableGLErrorLimit, | 58 kDisableGLErrorLimit, |
64 kDisableGLSLTranslator, | 59 kDisableGLSLTranslator, |
65 kDisableGpuDriverBugWorkarounds, | 60 kDisableGpuDriverBugWorkarounds, |
66 kDisableShaderNameHashing, | 61 kDisableShaderNameHashing, |
67 kEnableGPUCommandLogging, | 62 kEnableGPUCommandLogging, |
68 kEnableGPUDebugging, | 63 kEnableGPUDebugging, |
69 kEnableGPUServiceLoggingGPU, | 64 kEnableGPUServiceLoggingGPU, |
70 kDisableGpuProgramCache, | 65 kDisableGpuProgramCache, |
71 kEnforceGLMinimums, | 66 kEnforceGLMinimums, |
72 kForceGLFinishWorkaround, | 67 kForceGLFinishWorkaround, |
73 kDisableNonuniformGpuMemPolicy, | |
74 kForceGpuMemAvailableMb, | 68 kForceGpuMemAvailableMb, |
75 kGpuProgramCacheSizeKb, | 69 kGpuProgramCacheSizeKb, |
76 kTraceGL, | 70 kTraceGL, |
77 }; | 71 }; |
78 | 72 |
79 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 73 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
80 | 74 |
81 } // namespace switches | 75 } // namespace switches |
OLD | NEW |