CompositorImpl::SetVisible is not called when screen turns off |
|||||||
Issue descriptionWhen Chrome goes to background, the CompositoImpl should be notified SetVisible(false) to clear the LayerTreeFrameSink and the Display that it is holding. HandlePendingLayerTreeFrameSinkRequest() calls can create gl contexts when chrome is in background even if the surface is not visible.
,
Jul 24 2017
Actually you are right, it gets called when I test manually. Somehow it is not set in the benchmark causing issue 747031 . I will get more info on this soon.
,
Jul 25 2017
So, the issue is the CompositorImpl::SetVisible should be called by android window callback dispatching at android.view.SurfaceView.updateWindow. But Android system only destroys the surface if the app goes to background and not if the power button is pressed when app is in foreground. But, application's activities are destroyed on both cases when the application becomes invisible. This causes the CompositorImpl to not know that the app is invisible but, the activities destroyed notification tries to clear the gl memory and recreates because the surface is not destroyed.
,
Jul 25 2017
,
Jul 26 2017
,
Jul 26 2017
,
Aug 10
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 10
,
Aug 17
Assigning to ericrk for Android/compositor triage. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by aelias@chromium.org
, Jul 24 2017