Commit a5d88046 authored by Daniel Nicoara's avatar Daniel Nicoara Committed by Commit Bot

Query for GPU fence support in passthrough CMD decoder

Need to query for the capability otherwise the browser process won't
create a fence object and pass it in for presentation. The GPU process
expects this fence as the synchronization primitive when supported. If
it isn't provided the submitted buffer may be presented before the GPU
finishes rendering into it.

BUG=1097320,1083171
TEST=Manually on device and checked for tearing with passthrough command
decoder.

Change-Id: Ic1449d0fa0c0178078a88ac78fb38d94d950a11b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300810Reviewed-by: default avatarGeoff Lang <geofflang@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Daniel Nicoara <dnicoara@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789086}
parent 4714f88d
...@@ -1608,6 +1608,7 @@ gpu::Capabilities GLES2DecoderPassthroughImpl::GetCapabilities() { ...@@ -1608,6 +1608,7 @@ gpu::Capabilities GLES2DecoderPassthroughImpl::GetCapabilities() {
caps.multisample_compatibility = caps.multisample_compatibility =
feature_info_->feature_flags().ext_multisample_compatibility; feature_info_->feature_flags().ext_multisample_compatibility;
caps.dc_layers = !offscreen_ && surface_->SupportsDCLayers(); caps.dc_layers = !offscreen_ && surface_->SupportsDCLayers();
caps.use_gpu_fences_for_overlay_planes = surface_->SupportsPlaneGpuFences();
caps.commit_overlay_planes = surface_->SupportsCommitOverlayPlanes(); caps.commit_overlay_planes = surface_->SupportsCommitOverlayPlanes();
caps.protected_video_swap_chain = surface_->SupportsProtectedVideo(); caps.protected_video_swap_chain = surface_->SupportsProtectedVideo();
caps.gpu_vsync = surface_->SupportsGpuVSync(); caps.gpu_vsync = surface_->SupportsGpuVSync();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment