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

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

Issue 261013004: Allow use of EGL in browser tests with --use-gl=egl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: egl-browsertests: Created 6 years, 7 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 | Annotate | Revision Log
« 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 "ui/gl/gl_switches.h" 5 #include "ui/gl/gl_switches.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 7
8 namespace gfx { 8 namespace gfx {
9 9
10 const char kGLImplementationDesktopName[] = "desktop"; 10 const char kGLImplementationDesktopName[] = "desktop";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // integrated GPU or discrete GPU. 53 // integrated GPU or discrete GPU.
54 const char kGpuSwitching[] = "gpu-switching"; 54 const char kGpuSwitching[] = "gpu-switching";
55 55
56 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; 56 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated";
57 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; 57 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete";
58 58
59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
60 // library first, but fall back to regular library if loading fails. 60 // library first, but fall back to regular library if loading fails.
61 const char kTestGLLib[] = "test-gl-lib"; 61 const char kTestGLLib[] = "test-gl-lib";
62 62
63 // Use hardware gpu, if available, for tests.
64 const char kUseGpuInTests[] = "use-gpu-in-tests";
65
63 // Disables GL drawing operations which produce pixel output. With this 66 // Disables GL drawing operations which produce pixel output. With this
64 // the GL output will not be correct but tests will run faster. 67 // the GL output will not be correct but tests will run faster.
65 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 68 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
66 69
67 // Use hardware gpu, if available, for tests. 70 // Forces the use of OSMesa instead of hardware gpu.
68 const char kUseGpuInTests[] = "use-gpu-in-tests"; 71 const char kOverrideUseGLWithOSMesaForTests[] =
72 "override-use-gl-with-osmesa-for-tests";
69 73
70 // This is the list of switches passed from this file that are passed from the 74 // This is the list of switches passed from this file that are passed from the
71 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 75 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
72 // to read it in the GPU process, else don't add it. 76 // to read it in the GPU process, else don't add it.
73 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 77 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
74 kDisableGpuVsync, 78 kDisableGpuVsync,
75 kDisableD3D11, 79 kDisableD3D11,
76 kEnableGPUServiceLogging, 80 kEnableGPUServiceLogging,
77 kEnableGPUServiceTracing, 81 kEnableGPUServiceTracing,
78 kGpuNoContextLost, 82 kGpuNoContextLost,
83 kDisableGLDrawingForTests,
84 kOverrideUseGLWithOSMesaForTests,
79 }; 85 };
80 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 86 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
81 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 87 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
82 88
83 } // namespace switches 89 } // namespace switches
84 90
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