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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 79643002: Disable partial swap on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 3f8923ae895ecc38887237d6bd09f3c9425aa6e1..b03a49a1fa399b80ca9d16c50aeb87bf48eebee2 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -295,6 +295,11 @@ bool NativeViewGLSurfaceEGL::Initialize(VSyncProvider* sync_provider) {
&surfaceVal);
supports_post_sub_buffer_ = (surfaceVal && retVal) == EGL_TRUE;
+#if defined(OS_WIN)
+ // Partial swaps may be causing performance issues on Windows.
+ supports_post_sub_buffer_ = false;
+#endif
+
if (sync_provider)
vsync_provider_.swap(vsync_provider);
else if (g_egl_sync_control_supported)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698