Commit 59791333 authored by Emircan Uysaler's avatar Emircan Uysaler Committed by Chromium LUCI CQ

[Fuchsia] Skip UpdateViewHolderScene until there are overlays

This CL skips these calls until there are overlays present to
avoid marking the primary plane as white in startup.

Bug: 1155736
Change-Id: I4d9f6fce135cf11b70505e045d481531e874834d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575261Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Emircan Uysaler <emircan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834451}
parent 67d90f80
...@@ -183,6 +183,8 @@ mojo::PlatformHandle ScenicSurface::CreateView() { ...@@ -183,6 +183,8 @@ mojo::PlatformHandle ScenicSurface::CreateView() {
void ScenicSurface::UpdateViewHolderScene() { void ScenicSurface::UpdateViewHolderScene() {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
if (overlays_.empty())
return;
// |plane_z_order| for main surface is 0. // |plane_z_order| for main surface is 0.
int min_z_order = 0; int min_z_order = 0;
......
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