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

Unified Diff: content/browser/compositor/gpu_browser_compositor_output_surface.cc

Issue 2626413002: Route D3D VSync signal to Compositor (Closed)
Patch Set: Merged with recent BeginFrameSource changes Created 3 years, 10 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
Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
index 8ad8384dbaf8e62208841f95deb10c877d651ceb..a09063fbc6f6cf3276d293e65d7ead9988c28483 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -42,6 +42,14 @@ GpuBrowserCompositorOutputSurface::~GpuBrowserCompositorOutputSurface() {
UpdateVSyncParametersCallback());
}
+void GpuBrowserCompositorOutputSurface::SetNeedsVSync(bool needs_vsync) {
+#if defined(OS_WIN)
+ GetCommandBufferProxy()->SetNeedsVSync(needs_vsync);
+#else
+ NOTREACHED();
+#endif // defined(OS_WIN)
+}
+
void GpuBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted(
const std::vector<ui::LatencyInfo>& latency_info,
gfx::SwapResult result,

Powered by Google App Engine
This is Rietveld 408576698