| 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 // Turn on Calling GL Error after every command. | 10 // Turn on Calling GL Error after every command. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; | 30 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; |
| 31 | 31 |
| 32 // Enforce GL minimums. | 32 // Enforce GL minimums. |
| 33 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; | 33 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; |
| 34 | 34 |
| 35 // Force the use of a workaround for graphics hangs seen on certain | 35 // Force the use of a workaround for graphics hangs seen on certain |
| 36 // Mac OS systems. Enabled by default (and can't be disabled) on known | 36 // Mac OS systems. Enabled by default (and can't be disabled) on known |
| 37 // affected systems. | 37 // affected systems. |
| 38 const char kForceGLFinishWorkaround[] = "force-glfinish-workaround"; | 38 const char kForceGLFinishWorkaround[] = "force-glfinish-workaround"; |
| 39 | 39 |
| 40 // Sets the total amount of memory that may be allocated for GPU resources |
| 41 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; |
| 42 |
| 40 // Sets the maximum size of the in-memory gpu program cache, in kb | 43 // Sets the maximum size of the in-memory gpu program cache, in kb |
| 41 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; | 44 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; |
| 42 | 45 |
| 43 const char kTraceGL[] = "trace-gl"; | 46 const char kTraceGL[] = "trace-gl"; |
| 44 | 47 |
| 45 const char* kGpuSwitches[] = { | 48 const char* kGpuSwitches[] = { |
| 46 kCompileShaderAlwaysSucceeds, | 49 kCompileShaderAlwaysSucceeds, |
| 47 kDisableGLErrorLimit, | 50 kDisableGLErrorLimit, |
| 48 kDisableGLSLTranslator, | 51 kDisableGLSLTranslator, |
| 49 kDisableGpuDriverBugWorkarounds, | 52 kDisableGpuDriverBugWorkarounds, |
| 50 kEnableGPUCommandLogging, | 53 kEnableGPUCommandLogging, |
| 51 kEnableGPUDebugging, | 54 kEnableGPUDebugging, |
| 52 kDisableGpuProgramCache, | 55 kDisableGpuProgramCache, |
| 53 kEnforceGLMinimums, | 56 kEnforceGLMinimums, |
| 54 kForceGLFinishWorkaround, | 57 kForceGLFinishWorkaround, |
| 58 kForceGpuMemAvailableMb, |
| 55 kGpuProgramCacheSizeKb, | 59 kGpuProgramCacheSizeKb, |
| 56 kTraceGL, | 60 kTraceGL, |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 63 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
| 60 | 64 |
| 61 } // namespace switches | 65 } // namespace switches |
| OLD | NEW |