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

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

Issue 19925003: WIP - command line experiment Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « google_apis/google_api_keys.cc ('k') | gpu/command_buffer/service/gpu_switches.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Defines all the command-line switches used by gpu/command_buffer/service/. 5 // Defines all the command-line switches used by gpu/command_buffer/service/.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_
9 9
10 #include "base/basictypes.h"
11 #include "build/build_config.h"
10 #include "gpu/gpu_export.h" 12 #include "gpu/gpu_export.h"
11 13
14 #ifdef ENABLE_FAST_COMMAND_LINE_SWITCHES
15
16 namespace {
17 #include "gpu/command_buffer/service/gpu_switches.cc"
18 }
19
20 #else
21
12 namespace switches { 22 namespace switches {
13 23
14 GPU_EXPORT extern const char kCompileShaderAlwaysSucceeds[]; 24 GPU_EXPORT extern const char kCompileShaderAlwaysSucceeds[];
15 GPU_EXPORT extern const char kDisableGLErrorLimit[]; 25 GPU_EXPORT extern const char kDisableGLErrorLimit[];
16 GPU_EXPORT extern const char kDisableGLSLTranslator[]; 26 GPU_EXPORT extern const char kDisableGLSLTranslator[];
17 GPU_EXPORT extern const char kDisableGpuDriverBugWorkarounds[]; 27 GPU_EXPORT extern const char kDisableGpuDriverBugWorkarounds[];
18 GPU_EXPORT extern const char kDisableShaderNameHashing[]; 28 GPU_EXPORT extern const char kDisableShaderNameHashing[];
19 GPU_EXPORT extern const char kEnableGPUCommandLogging[]; 29 GPU_EXPORT extern const char kEnableGPUCommandLogging[];
20 GPU_EXPORT extern const char kEnableGPUDebugging[]; 30 GPU_EXPORT extern const char kEnableGPUDebugging[];
21 GPU_EXPORT extern const char kEnableGPUServiceLoggingGPU[]; 31 GPU_EXPORT extern const char kEnableGPUServiceLoggingGPU[];
22 GPU_EXPORT extern const char kDisableGpuProgramCache[]; 32 GPU_EXPORT extern const char kDisableGpuProgramCache[];
23 GPU_EXPORT extern const char kEnforceGLMinimums[]; 33 GPU_EXPORT extern const char kEnforceGLMinimums[];
24 GPU_EXPORT extern const char kForceGLFinishWorkaround[]; 34 GPU_EXPORT extern const char kForceGLFinishWorkaround[];
25 GPU_EXPORT extern const char kForceGpuMemAvailableMb[]; 35 GPU_EXPORT extern const char kForceGpuMemAvailableMb[];
26 GPU_EXPORT extern const char kForceSynchronousGLReadPixels[]; 36 GPU_EXPORT extern const char kForceSynchronousGLReadPixels[];
27 GPU_EXPORT extern const char kGpuDriverBugWorkarounds[]; 37 GPU_EXPORT extern const char kGpuDriverBugWorkarounds[];
28 GPU_EXPORT extern const char kGpuProgramCacheSizeKb[]; 38 GPU_EXPORT extern const char kGpuProgramCacheSizeKb[];
29 GPU_EXPORT extern const char kTraceGL[]; 39 GPU_EXPORT extern const char kTraceGL[];
30 GPU_EXPORT extern const char kDisableGpuShaderDiskCache[]; 40 GPU_EXPORT extern const char kDisableGpuShaderDiskCache[];
31 GPU_EXPORT extern const char kEnableShareGroupAsyncTextureUpload[]; 41 GPU_EXPORT extern const char kEnableShareGroupAsyncTextureUpload[];
32 42
33 GPU_EXPORT extern const char* kGpuSwitches[]; 43 GPU_EXPORT extern const char* kGpuSwitches[];
34 GPU_EXPORT extern const int kNumGpuSwitches; 44 GPU_EXPORT extern const int kNumGpuSwitches;
35 45
36 } // namespace switches 46 } // namespace switches
37 47
48 #endif // ENABLE_FAST_COMMAND_LINE_SWITCHES
38 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_ 49 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_SWITCHES_H_
39
OLDNEW
« no previous file with comments | « google_apis/google_api_keys.cc ('k') | gpu/command_buffer/service/gpu_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698