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

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

Issue 1609113002: Enable DirectComposition by default (reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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 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 // osmesa: The OSMesa software renderer. 60 // osmesa: The OSMesa software renderer.
61 const char kUseGL[] = "use-gl"; 61 const char kUseGL[] = "use-gl";
62 62
63 const char kSwiftShaderPath[] = "swiftshader-path"; 63 const char kSwiftShaderPath[] = "swiftshader-path";
64 64
65 // Inform Chrome that a GPU context will not be lost in power saving mode, 65 // Inform Chrome that a GPU context will not be lost in power saving mode,
66 // screen saving mode, etc. Note that this flag does not ensure that a GPU 66 // screen saving mode, etc. Note that this flag does not ensure that a GPU
67 // context will never be lost in any situations, say, a GPU reset. 67 // context will never be lost in any situations, say, a GPU reset.
68 const char kGpuNoContextLost[] = "gpu-no-context-lost"; 68 const char kGpuNoContextLost[] = "gpu-no-context-lost";
69 69
70 // Turns on the use of DirectComposition to draw to the screen. 70 // Disables the use of DirectComposition to draw to the screen.
71 const char kUseDirectComposition[] = "use-direct-composition"; 71 const char kDisableDirectComposition[] = "disable-direct-composition";
72 72
73 // Indicates whether the dual GPU switching is supported or not. 73 // Indicates whether the dual GPU switching is supported or not.
74 const char kSupportsDualGpus[] = "supports-dual-gpus"; 74 const char kSupportsDualGpus[] = "supports-dual-gpus";
75 75
76 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 76 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
77 // library first, but fall back to regular library if loading fails. 77 // library first, but fall back to regular library if loading fails.
78 const char kTestGLLib[] = "test-gl-lib"; 78 const char kTestGLLib[] = "test-gl-lib";
79 79
80 // Use hardware gpu, if available, for tests. 80 // Use hardware gpu, if available, for tests.
81 const char kUseGpuInTests[] = "use-gpu-in-tests"; 81 const char kUseGpuInTests[] = "use-gpu-in-tests";
82 82
83 // Enable OpenGL ES 3 APIs without proper service side validation. 83 // Enable OpenGL ES 3 APIs without proper service side validation.
84 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; 84 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
85 85
86 // Disables GL drawing operations which produce pixel output. With this 86 // Disables GL drawing operations which produce pixel output. With this
87 // the GL output will not be correct but tests will run faster. 87 // the GL output will not be correct but tests will run faster.
88 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 88 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
89 89
90 // Forces the use of OSMesa instead of hardware gpu. 90 // Forces the use of OSMesa instead of hardware gpu.
91 const char kOverrideUseGLWithOSMesaForTests[] = 91 const char kOverrideUseGLWithOSMesaForTests[] =
92 "override-use-gl-with-osmesa-for-tests"; 92 "override-use-gl-with-osmesa-for-tests";
93 93
94 // Disables specified comma separated GL Extensions if found. 94 // Disables specified comma separated GL Extensions if found.
95 const char kDisableGLExtensions[] = "disable-gl-extensions"; 95 const char kDisableGLExtensions[] = "disable-gl-extensions";
96 96
97 // This is the list of switches passed from this file that are passed from the 97 // This is the list of switches passed from this file that are passed from the
98 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 98 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
99 // to read it in the GPU process, else don't add it. 99 // to read it in the GPU process, else don't add it.
100 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 100 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
101 kDisableGpuVsync, 101 kDisableGpuVsync,
102 kDisableD3D11, 102 kDisableD3D11,
103 kEnableGPUServiceLogging, 103 kEnableGPUServiceLogging,
104 kEnableGPUServiceTracing, 104 kEnableGPUServiceTracing,
105 kEnableUnsafeES3APIs, 105 kEnableUnsafeES3APIs,
106 kGpuNoContextLost, 106 kGpuNoContextLost,
107 kDisableGLDrawingForTests, 107 kDisableGLDrawingForTests,
108 kOverrideUseGLWithOSMesaForTests, 108 kOverrideUseGLWithOSMesaForTests,
109 kUseANGLE, 109 kUseANGLE,
110 kUseDirectComposition, 110 kDisableDirectComposition,
111 }; 111 };
112 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 112 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
113 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 113 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
114 114
115 } // namespace switches 115 } // namespace switches
116 116
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