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

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

Issue 1177383005: cc: Add command line for frame production throttle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: follow 2nd Brian`s review Created 5 years, 6 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
« ui/compositor/compositor.cc ('K') | « 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 13 matching lines...) Expand all
24 } // namespace gfx 24 } // namespace gfx
25 25
26 namespace switches { 26 namespace switches {
27 27
28 // Disables use of D3D11. 28 // Disables use of D3D11.
29 const char kDisableD3D11[] = "disable-d3d11"; 29 const char kDisableD3D11[] = "disable-d3d11";
30 30
31 // Stop the GPU from synchronizing on the vsync before presenting. 31 // Stop the GPU from synchronizing on the vsync before presenting.
32 const char kDisableGpuVsync[] = "disable-gpu-vsync"; 32 const char kDisableGpuVsync[] = "disable-gpu-vsync";
33 33
34 // This flag is similar to kDisableGpuVsync but it is needed
35 // for the decoupling "disable gpu vsync" and "throttle frame production".
sky 2015/06/29 02:20:27 nit: too many spaces here.
Jimmy Jo 2015/06/29 02:37:50 Done.
36 // It is effective only for disabling gpu vsync.
37 const char kDisableDisplayVsync[] = "disable-display-vsync";
38
34 // Turns on GPU logging (debug build only). 39 // Turns on GPU logging (debug build only).
35 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; 40 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
36 41
37 // Turns on calling TRACE for every GL call. 42 // Turns on calling TRACE for every GL call.
38 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; 43 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing";
39 44
40 // Select which ANGLE backend to use. Options are: 45 // Select which ANGLE backend to use. Options are:
41 // default: Attempts several ANGLE renderers until one successfully 46 // default: Attempts several ANGLE renderers until one successfully
42 // initializes, varying ES support by platform. 47 // initializes, varying ES support by platform.
43 // d3d9: Legacy D3D9 renderer, ES2 only. 48 // d3d9: Legacy D3D9 renderer, ES2 only.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 kGpuNoContextLost, 103 kGpuNoContextLost,
99 kDisableGLDrawingForTests, 104 kDisableGLDrawingForTests,
100 kOverrideUseGLWithOSMesaForTests, 105 kOverrideUseGLWithOSMesaForTests,
101 kUseANGLE, 106 kUseANGLE,
102 }; 107 };
103 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 108 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
104 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 109 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
105 110
106 } // namespace switches 111 } // namespace switches
107 112
OLDNEW
« ui/compositor/compositor.cc ('K') | « ui/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698