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

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

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Update GLSurfaceAdapter Created 4 years, 3 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // the GL output will not be correct but tests will run faster. 90 // the GL output will not be correct but tests will run faster.
91 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 91 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
92 92
93 // Forces the use of OSMesa instead of hardware gpu. 93 // Forces the use of OSMesa instead of hardware gpu.
94 const char kOverrideUseGLWithOSMesaForTests[] = 94 const char kOverrideUseGLWithOSMesaForTests[] =
95 "override-use-gl-with-osmesa-for-tests"; 95 "override-use-gl-with-osmesa-for-tests";
96 96
97 // Disables specified comma separated GL Extensions if found. 97 // Disables specified comma separated GL Extensions if found.
98 const char kDisableGLExtensions[] = "disable-gl-extensions"; 98 const char kDisableGLExtensions[] = "disable-gl-extensions";
99 99
100 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers
101 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage";
102
100 // This is the list of switches passed from this file that are passed from the 103 // This is the list of switches passed from this file that are passed from the
101 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 104 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
102 // to read it in the GPU process, else don't add it. 105 // to read it in the GPU process, else don't add it.
103 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 106 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
104 kDisableGpuVsync, 107 kDisableGpuVsync,
105 kDisableD3D11, 108 kDisableD3D11,
106 kEnableGPUServiceLogging, 109 kEnableGPUServiceLogging,
107 kEnableGPUServiceTracing, 110 kEnableGPUServiceTracing,
108 kEnableUnsafeES3APIs, 111 kEnableUnsafeES3APIs,
109 kEnableSgiVideoSync, 112 kEnableSgiVideoSync,
110 kGpuNoContextLost, 113 kGpuNoContextLost,
111 kDisableGLDrawingForTests, 114 kDisableGLDrawingForTests,
112 kOverrideUseGLWithOSMesaForTests, 115 kOverrideUseGLWithOSMesaForTests,
113 kUseANGLE, 116 kUseANGLE,
114 kDisableDirectComposition, 117 kDisableDirectComposition,
118 kEnableSwapBuffersWithDamage,
115 }; 119 };
116 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 120 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
117 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 121 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
118 122
119 } // namespace switches 123 } // namespace switches
120
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