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

Side by Side Diff: ui/gl/gl_switches.cc

Issue 2277883003: gl: Disable SGI_video_sync by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: accidentally an s Created 4 years, 3 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 | « ui/gl/gl_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 "base/macros.h" 5 #include "base/macros.h"
6 #include "ui/gl/gl_switches.h" 6 #include "ui/gl/gl_switches.h"
7 7
8 namespace gl { 8 namespace gl {
9 9
10 const char kGLImplementationDesktopName[] = "desktop"; 10 const char kGLImplementationDesktopName[] = "desktop";
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 75 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
76 // library first, but fall back to regular library if loading fails. 76 // library first, but fall back to regular library if loading fails.
77 const char kTestGLLib[] = "test-gl-lib"; 77 const char kTestGLLib[] = "test-gl-lib";
78 78
79 // Use hardware gpu, if available, for tests. 79 // Use hardware gpu, if available, for tests.
80 const char kUseGpuInTests[] = "use-gpu-in-tests"; 80 const char kUseGpuInTests[] = "use-gpu-in-tests";
81 81
82 // Enable OpenGL ES 3 APIs without proper service side validation. 82 // Enable OpenGL ES 3 APIs without proper service side validation.
83 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; 83 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
84 84
85 // Enable use of the SGI_video_sync extension, which can have
86 // driver/sandbox/window manager compatibility issues.
87 const char kEnableSgiVideoSync[] = "enable-sgi-video-sync";
88
85 // Disables GL drawing operations which produce pixel output. With this 89 // Disables GL drawing operations which produce pixel output. With this
86 // the GL output will not be correct but tests will run faster. 90 // the GL output will not be correct but tests will run faster.
87 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 91 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
88 92
89 // Forces the use of OSMesa instead of hardware gpu. 93 // Forces the use of OSMesa instead of hardware gpu.
90 const char kOverrideUseGLWithOSMesaForTests[] = 94 const char kOverrideUseGLWithOSMesaForTests[] =
91 "override-use-gl-with-osmesa-for-tests"; 95 "override-use-gl-with-osmesa-for-tests";
92 96
93 // Disables specified comma separated GL Extensions if found. 97 // Disables specified comma separated GL Extensions if found.
94 const char kDisableGLExtensions[] = "disable-gl-extensions"; 98 const char kDisableGLExtensions[] = "disable-gl-extensions";
95 99
96 // This is the list of switches passed from this file that are passed from the 100 // This is the list of switches passed from this file that are passed from the
97 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 101 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
98 // to read it in the GPU process, else don't add it. 102 // to read it in the GPU process, else don't add it.
99 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 103 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
100 kDisableGpuVsync, 104 kDisableGpuVsync,
101 kDisableD3D11, 105 kDisableD3D11,
102 kEnableGPUServiceLogging, 106 kEnableGPUServiceLogging,
103 kEnableGPUServiceTracing, 107 kEnableGPUServiceTracing,
104 kEnableUnsafeES3APIs, 108 kEnableUnsafeES3APIs,
109 kEnableSgiVideoSync,
105 kGpuNoContextLost, 110 kGpuNoContextLost,
106 kDisableGLDrawingForTests, 111 kDisableGLDrawingForTests,
107 kOverrideUseGLWithOSMesaForTests, 112 kOverrideUseGLWithOSMesaForTests,
108 kUseANGLE, 113 kUseANGLE,
109 kDisableDirectComposition, 114 kDisableDirectComposition,
110 }; 115 };
111 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 116 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
112 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 117 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
113 118
114 } // namespace switches 119 } // namespace switches
115 120
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698