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

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

Issue 1778693002: Revert of Get rid of gpu related switches by passing gpu::GpuPreferences via IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | no next file » | 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 #include "gpu/command_buffer/service/gpu_switches.h" 5 #include "gpu/command_buffer/service/gpu_switches.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 "enable-threaded-texture-mailboxes"; 64 "enable-threaded-texture-mailboxes";
65 65
66 // Include ANGLE's intermediate representation (AST) output in shader 66 // Include ANGLE's intermediate representation (AST) output in shader
67 // compilation info logs. 67 // compilation info logs.
68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; 68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output";
69 69
70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to 70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to
71 // round intermediate values in ANGLE. 71 // round intermediate values in ANGLE.
72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; 72 const char kEmulateShaderPrecision[] = "emulate-shader-precision";
73 73
74 const char* kGpuSwitches[] = {
75 kCompileShaderAlwaysSucceeds,
76 kDisableGLErrorLimit,
77 kDisableGLSLTranslator,
78 kDisableGpuDriverBugWorkarounds,
79 kDisableShaderNameHashing,
80 kEnableGPUCommandLogging,
81 kEnableGPUDebugging,
82 kEnableGPUServiceLoggingGPU,
83 kDisableGpuProgramCache,
84 kEnforceGLMinimums,
85 kForceGpuMemAvailableMb,
86 kGpuDriverBugWorkarounds,
87 kGpuProgramCacheSizeKb,
88 kDisableGpuShaderDiskCache,
89 kEnableShareGroupAsyncTextureUpload,
90 kEnableSubscribeUniformExtension,
91 kGLShaderIntermOutput,
92 kEmulateShaderPrecision,
93 };
94
95 const int kNumGpuSwitches = arraysize(kGpuSwitches);
96
74 } // namespace switches 97 } // namespace switches
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698