gl: Add TraceEvents for eglGetFrameTimestamps.

Sorts the events by timestamp and records:
1) A trace event for the entire range.
2) Nested ranges within (1) of the remaining events, which provide
  a nice visual representation of a frames events and durations,
  making anomalous frames very apparent.
3) Nested instant events within (1) for a more detailed description
  of the event.

Bug: 769415
Test: Traces look niice.
Cq-Include-Trybots: 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: Iaff6867f7f9eea48d3a456264e36978da9991abb
Reviewed-on: https://chromium-review.googlesource.com/685409
Commit-Queue: Brian Anderson <brianderson@chromium.org>
Reviewed-by: oysteine <oysteine@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507125}

CrOS-Libchrome-Original-Commit: 822c07c6ef35e5b1cbb36fdabf5fe9a276c49aba
1 file changed
tree: 4a3bd84f9dddfc918394a397efedaefc5c462407
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/