| 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();
|
| +}
|
| +#endif
|
| +
|
| } // namespace content
|
|
|