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

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

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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 d1cb0a8846983c8ee86c7119b1a359132061bb0d..fba846350ee62c76e98ac08dd7772340786b5a79 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -251,7 +251,7 @@ bool PassThroughImageTransportSurface::SwapBuffers() {
// crbug.com/223558.
SendVSyncUpdateIfAvailable();
bool result = gfx::GLSurfaceAdapter::SwapBuffers();
- latency_info_.swap_timestamp = base::TimeTicks::HighResNow();
+ latency_info_.Report(ui::INPUT_EVENT_LATENCY_FRAME_SWAP_COMPONENT);
if (transport_) {
DCHECK(!is_swap_buffers_pending_);
@@ -274,7 +274,7 @@ bool PassThroughImageTransportSurface::PostSubBuffer(
int x, int y, int width, int height) {
SendVSyncUpdateIfAvailable();
bool result = gfx::GLSurfaceAdapter::PostSubBuffer(x, y, width, height);
- latency_info_.swap_timestamp = base::TimeTicks::HighResNow();
+ latency_info_.Report(ui::INPUT_EVENT_LATENCY_FRAME_SWAP_COMPONENT);
if (transport_) {
DCHECK(!is_swap_buffers_pending_);

Powered by Google App Engine
This is Rietveld 408576698