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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_switches.cc
diff --git a/ui/gl/gl_switches.cc b/ui/gl/gl_switches.cc
index 247535e3de5f065703d2cf3dd3ae8bfaa52f43bd..e7a37a7aedc20681996bbbc308f9ce9f63c58b86 100644
--- a/ui/gl/gl_switches.cc
+++ b/ui/gl/gl_switches.cc
@@ -97,6 +97,9 @@ const char kOverrideUseGLWithOSMesaForTests[] =
// Disables specified comma separated GL Extensions if found.
const char kDisableGLExtensions[] = "disable-gl-extensions";
+// Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers
+const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage";
+
// This is the list of switches passed from this file that are passed from the
// GpuProcessHost to the GPU Process. Add your switch to this list if you need
// to read it in the GPU process, else don't add it.
@@ -112,9 +115,9 @@ const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
kOverrideUseGLWithOSMesaForTests,
kUseANGLE,
kDisableDirectComposition,
+ kEnableSwapBuffersWithDamage,
};
const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
arraysize(kGLSwitchesCopiedFromGpuProcessHost);
} // namespace switches
-
« 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