gl: Add out-fence to GLSurface swap completion callback

Add an out-fence parameter to the swap completion callback used by the
the GLSurface async methods. If present, the fence will be signaled when
the swap has completed.

This commit doesn't implement the actual mechanism for the callback in
any Ozone backend, it just updates the GLSurface API.

Bug: 867361
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I1a853e8e21cd636802e978ca6cdcb429b39e8141
Reviewed-on: https://chromium-review.googlesource.com/1127953
Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Michael Spang <spang@chromium.org>
Reviewed-by: Daniele Castagna <dcastagna@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578051}
14 files changed