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

Unified Diff: content/common/gpu/null_transport_surface.cc

Issue 649773002: gpu: Don't call SetSwapInterval() for NullTransportSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/common/gpu/null_transport_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/null_transport_surface.cc
diff --git a/content/common/gpu/null_transport_surface.cc b/content/common/gpu/null_transport_surface.cc
index d544d4d0266ec5784f11ca7e8a69227c1aa0feb7..ebcea853a675f95a1d5a736e5754eb21d334da86 100644
--- a/content/common/gpu/null_transport_surface.cc
+++ b/content/common/gpu/null_transport_surface.cc
@@ -64,4 +64,10 @@ void NullTransportSurface::SendVSyncUpdateIfAvailable() {
NOTREACHED();
}
+bool NullTransportSurface::OnMakeCurrent(gfx::GLContext* context) {
+ // Override PassThroughImageTransportSurface default behavior which
+ // sets the swap interval.
+ return true;
+}
+
} // namespace content
« no previous file with comments | « content/common/gpu/null_transport_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698