Index: content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc |
diff --git a/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc |
index 9507cc31148d7f6d4369d80847bac07250ddaefd..62b1aae4d90de94ae0931dda2379166a0c781589 100644 |
--- a/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc |
+++ b/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc |
@@ -98,6 +98,9 @@ void GpuSurfacelessBrowserCompositorOutputSurface::Reshape( |
void GpuSurfacelessBrowserCompositorOutputSurface::OnSwapBuffersCompleted( |
const std::vector<ui::LatencyInfo>& latency_info, |
gfx::SwapResult result) { |
+#if defined(OS_MACOSX) |
+ NOTREACHED(); |
+#else |
if (result == gfx::SwapResult::SWAP_NAK_RECREATE_BUFFERS) { |
// Even through the swap failed, this is a fixable error so we can pretend |
// it succeeded to the rest of the system. |
@@ -106,6 +109,7 @@ void GpuSurfacelessBrowserCompositorOutputSurface::OnSwapBuffersCompleted( |
} |
GpuBrowserCompositorOutputSurface::OnSwapBuffersCompleted(latency_info, |
result); |
+#endif |
} |
#if defined(OS_MACOSX) |