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: content/common/gpu/image_transport_surface.cc

Issue 789823004: Added ability to force a GLContext SwapInterval to zero. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed initializers Created 6 years 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 | gpu/command_buffer/service/gl_context_virtual.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index 423a16a6d7ee0b846b478ddc1e7dc42eb281131c..f4c5a68cb218b02b354c2612ec7f3b18b4e89b63 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -141,12 +141,12 @@ void ImageTransportHelper::SetSwapInterval(gfx::GLContext* context) {
// If Aero Glass is enabled, then the renderer will handle ratelimiting and
// there's no tearing, so waiting for vsync is unnecessary.
if (ui::win::IsAeroGlassEnabled()) {
- context->SetSwapInterval(0);
+ context->ForceSwapIntervalZero(true);
return;
}
#endif
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpuVsync))
- context->SetSwapInterval(0);
+ context->ForceSwapIntervalZero(true);
else
context->SetSwapInterval(1);
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/gl_context_virtual.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698