OLD | NEW |
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 Loading... |
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 // The asynchronous EGL upload path is limited to FBO/surface compatible formats |
| 72 // (currently RGBA_8888). Disable this path to support for example compressed |
| 73 // texture uploads. |
| 74 const char kDisableAsyncEGLUploadsIfCompressed[] = |
| 75 "disable-async-egl-uploads-if-compressed"; |
| 76 |
| 77 // Enable dynamic switching between EGL upload path and Idle upload path |
| 78 // depending on if the uploaded texture is compressed or not. |
| 79 const char kEnableAsyncPixelTransferManagerCompressed[] = |
| 80 "enable-async-pixel-transfer-manager-compressed"; |
| 81 |
71 const char* kGpuSwitches[] = { | 82 const char* kGpuSwitches[] = { |
72 kCompileShaderAlwaysSucceeds, | 83 kCompileShaderAlwaysSucceeds, |
73 kDisableGLErrorLimit, | 84 kDisableGLErrorLimit, |
74 kDisableGLSLTranslator, | 85 kDisableGLSLTranslator, |
75 kDisableGpuDriverBugWorkarounds, | 86 kDisableGpuDriverBugWorkarounds, |
76 kDisableShaderNameHashing, | 87 kDisableShaderNameHashing, |
77 kEnableGPUCommandLogging, | 88 kEnableGPUCommandLogging, |
78 kEnableGPUDebugging, | 89 kEnableGPUDebugging, |
79 kEnableGPUServiceLoggingGPU, | 90 kEnableGPUServiceLoggingGPU, |
80 kDisableGpuProgramCache, | 91 kDisableGpuProgramCache, |
81 kEnforceGLMinimums, | 92 kEnforceGLMinimums, |
82 kForceGpuMemAvailableMb, | 93 kForceGpuMemAvailableMb, |
83 kGpuDriverBugWorkarounds, | 94 kGpuDriverBugWorkarounds, |
84 kGpuProgramCacheSizeKb, | 95 kGpuProgramCacheSizeKb, |
85 kDisableGpuShaderDiskCache, | 96 kDisableGpuShaderDiskCache, |
86 kEnableShareGroupAsyncTextureUpload, | 97 kEnableShareGroupAsyncTextureUpload, |
87 kEnableUnsafeES3APIs, | 98 kEnableUnsafeES3APIs, |
88 kEnableSubscribeUniformExtension, | 99 kEnableSubscribeUniformExtension, |
| 100 kDisableAsyncEGLUploadsIfCompressed, |
| 101 kEnableAsyncPixelTransferManagerCompressed, |
89 }; | 102 }; |
90 | 103 |
91 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 104 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
92 | 105 |
93 } // namespace switches | 106 } // namespace switches |
OLD | NEW |