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

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index b6367dd4cd8b7e74f153726f5b4a3e7d4b179170..3fd02d625e12c95d0eb4244a7ed986ff57383701 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -226,7 +226,7 @@ bool PassThroughImageTransportSurface::PostSubBuffer(
weak_ptr_factory_.GetWeakPtr()));
}
-void PassThroughImageTransportSurface::SwapBuffersCallBack() {
+void PassThroughImageTransportSurface::SwapBuffersCallBack(int result) {
base::TimeTicks swap_ack_time = base::TimeTicks::Now();
for (auto& latency : latency_info_) {
latency.AddLatencyNumberWithTimestamp(
@@ -234,7 +234,7 @@ void PassThroughImageTransportSurface::SwapBuffersCallBack() {
swap_ack_time, 1);
}
- helper_->stub()->SendSwapBuffersCompleted(latency_info_);
+ helper_->stub()->SendSwapBuffersCompleted(latency_info_, result);
latency_info_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698