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

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

Issue 2673473002: Rename SwapBuffersWithDamage to SwapBuffersWithBounds (Closed)
Patch Set: fix windows compile warning Created 3 years, 10 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') | ui/ozone/platform/cast/gl_surface_cast.h » ('j') | 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // the GL output will not be correct but tests will run faster. 103 // the GL output will not be correct but tests will run faster.
104 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 104 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
105 105
106 // Forces the use of OSMesa instead of hardware gpu. 106 // Forces the use of OSMesa instead of hardware gpu.
107 const char kOverrideUseGLWithOSMesaForTests[] = 107 const char kOverrideUseGLWithOSMesaForTests[] =
108 "override-use-gl-with-osmesa-for-tests"; 108 "override-use-gl-with-osmesa-for-tests";
109 109
110 // Disables specified comma separated GL Extensions if found. 110 // Disables specified comma separated GL Extensions if found.
111 const char kDisableGLExtensions[] = "disable-gl-extensions"; 111 const char kDisableGLExtensions[] = "disable-gl-extensions";
112 112
113 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers 113 // Enables SwapBuffersWithBounds if it is supported.
114 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage"; 114 const char kEnableSwapBuffersWithBounds[] = "enable-swap-buffers-with-bounds";
115 115
116 // This is the list of switches passed from this file that are passed from the 116 // This is the list of switches passed from this file that are passed from the
117 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 117 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
118 // to read it in the GPU process, else don't add it. 118 // to read it in the GPU process, else don't add it.
119 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 119 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
120 kDisableGpuVsync, 120 kDisableGpuVsync,
121 kDisableD3D11, 121 kDisableD3D11,
122 kEnableGPUServiceLogging, 122 kEnableGPUServiceLogging,
123 kEnableGPUServiceTracing, 123 kEnableGPUServiceTracing,
124 kEnableSgiVideoSync, 124 kEnableSgiVideoSync,
125 kGpuNoContextLost, 125 kGpuNoContextLost,
126 kDisableGLDrawingForTests, 126 kDisableGLDrawingForTests,
127 kOverrideUseGLWithOSMesaForTests, 127 kOverrideUseGLWithOSMesaForTests,
128 kUseANGLE, 128 kUseANGLE,
129 kDisableDirectComposition, 129 kDisableDirectComposition,
130 kEnableSwapBuffersWithDamage, 130 kEnableSwapBuffersWithBounds,
131 }; 131 };
132 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 132 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
133 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 133 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
134 134
135 } // namespace switches 135 } // namespace switches
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | ui/ozone/platform/cast/gl_surface_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698