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
Commit-Queue: Daniele Castagna <>
Reviewed-by: Antoine Labour <>
Reviewed-by: Michael Spang <>
Reviewed-by: Daniele Castagna <>
Cr-Commit-Position: refs/heads/master@{#578051}
14 files changed