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

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

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 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_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index ff2626e177be0b7a9fb237e459f941be8598ba54..b74845fde4401ceebbcef7086f79d094f8ad50d3 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -505,11 +505,14 @@ void GpuProcessTransportFactory::RemoveObserver(
}
#if defined(OS_MACOSX)
-void GpuProcessTransportFactory::OnSurfaceDisplayed(int surface_id) {
+void GpuProcessTransportFactory::OnGpuSwapBuffersCompleted(
+ int surface_id,
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result) {
BrowserCompositorOutputSurface* surface = output_surface_map_.Lookup(
surface_id);
if (surface)
- surface->OnSurfaceDisplayed();
+ surface->OnGpuSwapBuffersCompleted(latency_info, result);
}
void GpuProcessTransportFactory::SetCompositorSuspendedForRecycle(

Powered by Google App Engine
This is Rietveld 408576698