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

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

Issue 1103403002: gpu: Fix dependency cycle between service_sources and config_sources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: zmo nits Created 5 years, 7 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
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
7 #include "base/macros.h"
7 8
8 namespace switches { 9 namespace switches {
9 10
10 // Always return success when compiling a shader. Linking will still fail. 11 // Always return success when compiling a shader. Linking will still fail.
11 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds"; 12 const char kCompileShaderAlwaysSucceeds[] = "compile-shader-always-succeeds";
12 13
13 // Disable the GL error log limit. 14 // Disable the GL error log limit.
14 const char kDisableGLErrorLimit[] = "disable-gl-error-limit"; 15 const char kDisableGLErrorLimit[] = "disable-gl-error-limit";
15 16
16 // Disable the GLSL translator. 17 // Disable the GLSL translator.
(...skipping 19 matching lines...) Expand all
36 37
37 // Turn off gpu program caching 38 // Turn off gpu program caching
38 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache"; 39 const char kDisableGpuProgramCache[] = "disable-gpu-program-cache";
39 40
40 // Enforce GL minimums. 41 // Enforce GL minimums.
41 const char kEnforceGLMinimums[] = "enforce-gl-minimums"; 42 const char kEnforceGLMinimums[] = "enforce-gl-minimums";
42 43
43 // Sets the total amount of memory that may be allocated for GPU resources 44 // Sets the total amount of memory that may be allocated for GPU resources
44 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb"; 45 const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb";
45 46
46 // Pass a set of GpuDriverBugWorkaroundType ids, seperated by ','.
47 const char kGpuDriverBugWorkarounds[] = "gpu-driver-bug-workarounds";
48
49 // Sets the maximum size of the in-memory gpu program cache, in kb 47 // Sets the maximum size of the in-memory gpu program cache, in kb
50 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb"; 48 const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb";
51 49
52 // Disables the GPU shader on disk cache. 50 // Disables the GPU shader on disk cache.
53 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache"; 51 const char kDisableGpuShaderDiskCache[] = "disable-gpu-shader-disk-cache";
54 52
55 // Allows async texture uploads (off main thread) via GL context sharing. 53 // Allows async texture uploads (off main thread) via GL context sharing.
56 const char kEnableShareGroupAsyncTextureUpload[] = 54 const char kEnableShareGroupAsyncTextureUpload[] =
57 "enable-share-group-async-texture-upload"; 55 "enable-share-group-async-texture-upload";
58 56
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 kDisableGpuShaderDiskCache, 88 kDisableGpuShaderDiskCache,
91 kEnableShareGroupAsyncTextureUpload, 89 kEnableShareGroupAsyncTextureUpload,
92 kEnableSubscribeUniformExtension, 90 kEnableSubscribeUniformExtension,
93 kGLShaderIntermOutput, 91 kGLShaderIntermOutput,
94 kEmulateShaderPrecision, 92 kEmulateShaderPrecision,
95 }; 93 };
96 94
97 const int kNumGpuSwitches = arraysize(kGpuSwitches); 95 const int kNumGpuSwitches = arraysize(kGpuSwitches);
98 96
99 } // namespace switches 97 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698