ThinWebView : SurfaceView zOrder issue
This CL addresses the surface view transparent issue after screen off/on. This is one of the approaches to fix this. When screen is turned off, in versions >=P, we recreate the compositor surface. Also in Q, we use surface control, and use a Translucent surface. For translucent surfaces, we use zOrderMediaOverly. This CL fixes this issue by not setting zOrderMediaOverlay for the main compositor view when surface control is enabled. Another alternative is to recreate the ThinWebView surface after screen off/on, and order both of them correctly so that TWV surface is created after the main compositor. This CL follows the former approach. This CL also reverts back the setZOrderOnTop added recently in CL https://chromium-review.googlesource.com/c/chromium/src/+/1939892 Bug: 1024622 Change-Id: I889a98aa18943bfbcd45797c031196640a822b88 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954452 Commit-Queue: Shakti Sahu <shaktisahu@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#723608}
Showing
Please register or sign in to comment