gpu: Remove gpu's dependency on ui/latency_info.

Add a gfx::SwapResponse that contains the swap result and the timing
information for every swap.

Let the client add those timestamps to cached LatencyInfos rather
than passing LatencyInfo to the GPU service to modify and send back.

Behaviorally, this patch is a no-op, but the intent is to:
1) Simplify later patches that will add timestamps to the SwapResponse.
2) Step towards removing PassThroughImageTransportSurface.
3) Remove gpu's dependency on ui/latency_info, which was a layering smell.

Bug: 769415
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I9e1ac97d32600d13ee05467d70fad5674e1355f0
Reviewed-on: https://chromium-review.googlesource.com/767572
Commit-Queue: Brian Anderson <brianderson@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#517614}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: feaa47c68a99a0817c2b945801fdc9d2873fc6b6
2 files changed