Commit e1830003 authored by Khushal's avatar Khushal Committed by Commit Bot

android: Don't transition Surfaces at app startup.

There seems to be a race condition in the framework which results in a
crash if we transition between SurfaceViews too soon at app startup.
This change removes that to verify the theory. It was initially added
to avoid additional color layers when we use video overlays with
SurfaceControl, but its unclear what the cost of this is. For now, just
remove the transition altogether and if it turns out that this is an
issue we can try delaying the transition after startup.

R=dtrainor@chromium.org

Change-Id: I422a396aa3616773629933657dd1a5baf1341ce7
Bug: 998311
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1776906
Commit-Queue: Khushal <khushalsagar@chromium.org>
Commit-Queue: David Trainor <dtrainor@chromium.org>
Auto-Submit: Khushal <khushalsagar@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691863}
parent da6a5ae3
...@@ -462,7 +462,6 @@ public class CompositorView ...@@ -462,7 +462,6 @@ public class CompositorView
@CalledByNative @CalledByNative
private void notifyWillUseSurfaceControl() { private void notifyWillUseSurfaceControl() {
mIsSurfaceControlEnabled = true; mIsSurfaceControlEnabled = true;
mCompositorSurfaceManager.requestSurface(getSurfacePixelFormat());
} }
/** /**
......
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