viz: Fix trace-id for canceled draw events.

It is possible that while waiting for the ack of a previous draw, another
draw is attempted and aborted. In such cases, the trace-event for the
first draw would incorrectly be terminated. Fix that bug by fixing the
trace-id for such canceled draw events. Also, instrument such events so
that telemetry tests can identify such events.

Also, fix the trace-id to be int64_t in SurfaceAggregator, which was
mistakenly left unchanged in crrev.com/590805

BUG=883592, 879884

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: Id39bf22559bd9f02e2765e69cc32a8cb1e9c62a2
Reviewed-on: https://chromium-review.googlesource.com/1223326
Reviewed-by: Ehsan Chiniforooshan <chiniforooshan@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591259}
3 files changed