summaryrefslogtreecommitdiffstats
path: root/content/common/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu')
-rw-r--r--content/common/gpu/image_transport_surface.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index 21581af..45c1c83 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -226,6 +226,10 @@ bool PassThroughImageTransportSurface::SwapBuffers() {
// GetVsyncValues before SwapBuffers to work around Mali driver bug:
// crbug.com/223558.
SendVSyncUpdateIfAvailable();
+ for (size_t i = 0; i < latency_info_.size(); ++i) {
+ latency_info_[i].AddLatencyNumber(
+ ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, 0, 0);
+ }
bool result = gfx::GLSurfaceAdapter::SwapBuffers();
for (size_t i = 0; i < latency_info_.size(); i++) {
latency_info_[i].AddLatencyNumber(