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

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

Issue 132473009: Allow tests to stub out GL draw calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stubglbindings: nulldraw Created 6 years, 11 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // integrated GPU or discrete GPU. 60 // integrated GPU or discrete GPU.
61 const char kGpuSwitching[] = "gpu-switching"; 61 const char kGpuSwitching[] = "gpu-switching";
62 62
63 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; 63 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated";
64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; 64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete";
65 65
66 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 66 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
67 // library first, but fall back to regular library if loading fails. 67 // library first, but fall back to regular library if loading fails.
68 const char kTestGLLib[] = "test-gl-lib"; 68 const char kTestGLLib[] = "test-gl-lib";
69 69
70 // Disables GL drawing operations which produce pixel output. With this
71 // the GL output will not be correct but tests will run faster.
72 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
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 kEnableD3D11, 79 kEnableD3D11,
76 kDisableD3D11, 80 kDisableD3D11,
77 kEnableGPUServiceLogging, 81 kEnableGPUServiceLogging,
78 kEnableGPUServiceTracing, 82 kEnableGPUServiceTracing,
79 kGpuNoContextLost, 83 kGpuNoContextLost,
80 }; 84 };
81 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 85 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
82 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 86 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
83 87
84 } // namespace switches 88 } // namespace switches
85 89
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