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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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 #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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Enable WebGL subscribe uniform extension. 59 // Enable WebGL subscribe uniform extension.
60 const char kEnableSubscribeUniformExtension[] = 60 const char kEnableSubscribeUniformExtension[] =
61 "enable-subscribe-uniform-extension"; 61 "enable-subscribe-uniform-extension";
62 62
63 // Simulates shared textures when share groups are not available. Not available 63 // Simulates shared textures when share groups are not available. Not available
64 // everywhere. 64 // everywhere.
65 const char kEnableThreadedTextureMailboxes[] = 65 const char kEnableThreadedTextureMailboxes[] =
66 "enable-threaded-texture-mailboxes"; 66 "enable-threaded-texture-mailboxes";
67 67
68 // Enable OpenGL ES 3 APIs without proper service side validation.
69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
70
71 // Include ANGLE's intermediate representation (AST) output in shader 68 // Include ANGLE's intermediate representation (AST) output in shader
72 // compilation info logs. 69 // compilation info logs.
73 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; 70 const char kGLShaderIntermOutput[] = "gl-shader-interm-output";
74 71
75 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to 72 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to
76 // round intermediate values in ANGLE. 73 // round intermediate values in ANGLE.
77 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; 74 const char kEmulateShaderPrecision[] = "emulate-shader-precision";
78 75
79 const char* kGpuSwitches[] = { 76 const char* kGpuSwitches[] = {
80 kCompileShaderAlwaysSucceeds, 77 kCompileShaderAlwaysSucceeds,
81 kDisableGLErrorLimit, 78 kDisableGLErrorLimit,
82 kDisableGLSLTranslator, 79 kDisableGLSLTranslator,
83 kDisableGpuDriverBugWorkarounds, 80 kDisableGpuDriverBugWorkarounds,
84 kDisableShaderNameHashing, 81 kDisableShaderNameHashing,
85 kEnableGPUCommandLogging, 82 kEnableGPUCommandLogging,
86 kEnableGPUDebugging, 83 kEnableGPUDebugging,
87 kEnableGPUServiceLoggingGPU, 84 kEnableGPUServiceLoggingGPU,
88 kDisableGpuProgramCache, 85 kDisableGpuProgramCache,
89 kEnforceGLMinimums, 86 kEnforceGLMinimums,
90 kForceGpuMemAvailableMb, 87 kForceGpuMemAvailableMb,
91 kGpuDriverBugWorkarounds, 88 kGpuDriverBugWorkarounds,
92 kGpuProgramCacheSizeKb, 89 kGpuProgramCacheSizeKb,
93 kDisableGpuShaderDiskCache, 90 kDisableGpuShaderDiskCache,
94 kEnableShareGroupAsyncTextureUpload, 91 kEnableShareGroupAsyncTextureUpload,
95 kEnableUnsafeES3APIs,
96 kEnableSubscribeUniformExtension, 92 kEnableSubscribeUniformExtension,
97 kGLShaderIntermOutput, 93 kGLShaderIntermOutput,
98 kEmulateShaderPrecision, 94 kEmulateShaderPrecision,
99 }; 95 };
100 96
101 const int kNumGpuSwitches = arraysize(kGpuSwitches); 97 const int kNumGpuSwitches = arraysize(kGpuSwitches);
102 98
103 } // namespace switches 99 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/gpu_tracer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698