Commit a91d4ae3 authored by Daniele Castagna's avatar Daniele Castagna Committed by Commit Bot

Reland "viz: Make primary plane transparent"

This is a reland of 65ae686a

The issue it caused when we originally landed it was fixed
in crrev.com/c/981239

Original change's description:
> viz: Make primary plane transparent
>
> This CL enables alpha blending at scanout for the primary plane.
> In this way chromecast will be able to punch a hole in the primary
> plane and show content underneath.
>
> Note that on platform using legacy pageflip we'll still be
> scanning out without alpha blending (crrev.com/c/964984).
>
> Bug: 821944, b/74997524
> Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
> Change-Id: I654935dc630f7a9f6cb4717cd574a21a2749c442
> Reviewed-on: https://chromium-review.googlesource.com/976961
> Reviewed-by: Daniel Nicoara <dnicoara@chromium.org>
> Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#545478}

Bug: 821944, b/74997524
Change-Id: Icfff83119231cd9a1e486719dbb0a25786ea71f2
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Tbr: dnicoara@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/980956
Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546182}
parent d932972f
......@@ -280,7 +280,7 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
output_surface_plane.format = output_surface_->GetOverlayBufferFormat();
output_surface_plane.use_output_surface_for_resource = true;
output_surface_plane.overlay_handled = true;
output_surface_plane.is_opaque = true;
output_surface_plane.is_opaque = false;
current_frame()->overlay_list.push_back(output_surface_plane);
}
......
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