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

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

Issue 2626413002: Route D3D VSync signal to Compositor (Closed)
Patch Set: Addressed CR feedback Created 3 years, 11 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 f0184f56bb33c50e00576ebe0258ee100abc4c16..b06d71d96484ffef07365f1df66eac75b742e707 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -44,6 +44,14 @@ GpuBrowserCompositorOutputSurface::~GpuBrowserCompositorOutputSurface() {
UpdateVSyncParametersCallback());
}
+void GpuBrowserCompositorOutputSurface::SetNeedsVSync(bool needs_vsync) {
enne (OOO) 2017/01/24 21:32:07 I still think this is a little bit confusing of a
stanisc 2017/01/24 22:22:40 When D3D VSync feature is enabled that fully repla
+#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