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

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

Issue 629293004: Call DidPostSwapBuffers and SwapBuffersComplete for browser software surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests 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
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 efa805261e9d914d261aeaf5d7f46b7119ce8646..5f647626b27bae299a8a61158a096ed07579c17d 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -48,4 +48,18 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers(
OutputSurface::SwapBuffers(frame);
}
+void GpuBrowserCompositorOutputSurface::OnSwapBuffersComplete() {
+ // On Mac, delay acknowledging the swap to the output surface client until
+ // it has been drawn.
+#if !defined(OS_MACOSX)
+ cc::OutputSurface::OnSwapBuffersComplete();
+#endif
+}
+
+#if defined(OS_MACOSX)
+void GpuBrowserCompositorOutputSurface::OnSurfaceDisplayed() {
+ cc::OutputSurface::OnSwapBuffersComplete();
danakj 2014/10/08 19:32:29 you could just call OnSwapBuffersComplete (no clas
no sievers 2014/10/08 19:59:00 Then it would call the above and not do anything f
+}
+#endif
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698