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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 68 // Enable OpenGL ES 3 APIs without proper service side validation.
69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; 69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
70 70
71 // Include ANGLE's intermediate representation (AST) output in shader
72 // compilation info logs.
73 const char kGLShaderIntermOutput[] = "gl-shader-interm-output";
74
75 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to
76 // round intermediate values in ANGLE.
77 const char kEmulateShaderPrecision[] = "emulate-shader-precision";
78
71 const char* kGpuSwitches[] = { 79 const char* kGpuSwitches[] = {
72 kCompileShaderAlwaysSucceeds, 80 kCompileShaderAlwaysSucceeds,
73 kDisableGLErrorLimit, 81 kDisableGLErrorLimit,
74 kDisableGLSLTranslator, 82 kDisableGLSLTranslator,
75 kDisableGpuDriverBugWorkarounds, 83 kDisableGpuDriverBugWorkarounds,
76 kDisableShaderNameHashing, 84 kDisableShaderNameHashing,
77 kEnableGPUCommandLogging, 85 kEnableGPUCommandLogging,
78 kEnableGPUDebugging, 86 kEnableGPUDebugging,
79 kEnableGPUServiceLoggingGPU, 87 kEnableGPUServiceLoggingGPU,
80 kDisableGpuProgramCache, 88 kDisableGpuProgramCache,
81 kEnforceGLMinimums, 89 kEnforceGLMinimums,
82 kForceGpuMemAvailableMb, 90 kForceGpuMemAvailableMb,
83 kGpuDriverBugWorkarounds, 91 kGpuDriverBugWorkarounds,
84 kGpuProgramCacheSizeKb, 92 kGpuProgramCacheSizeKb,
85 kDisableGpuShaderDiskCache, 93 kDisableGpuShaderDiskCache,
86 kEnableShareGroupAsyncTextureUpload, 94 kEnableShareGroupAsyncTextureUpload,
87 kEnableUnsafeES3APIs, 95 kEnableUnsafeES3APIs,
88 kEnableSubscribeUniformExtension, 96 kEnableSubscribeUniformExtension,
97 kGLShaderIntermOutput,
98 kEmulateShaderPrecision,
89 }; 99 };
90 100
91 const int kNumGpuSwitches = arraysize(kGpuSwitches); 101 const int kNumGpuSwitches = arraysize(kGpuSwitches);
92 102
93 } // namespace switches 103 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698