gecko-dev/widget/android
Jamie Nicol 0155e30e96 Bug 1741156 - Reinitialize compositor and request repaint after GPU process restart. r=aosmond,geckoview-reviewers,agi
This patch ensures that, following a GPU process crash, we
re-initialize the compositor and resume painting on Android.

nsWindow::GetWindowRenderer() is made to always reinitialize the
window renderer if there is none, like on other platforms. We
therefore no longer need to track whether webrender is being disabled,
as this is no longer a special case.

Previously we started the compositor as initially paused in
nsBaseWidget::CreateCompositorSession only if the widget did not yet
have a surface. Now we must unconditionally (re)start it as initially
paused, as even though the widget in the parent process may have a
surface, we will not have been able to send it to the GPU process
yet. We will send the surface to the compositor once control flow
returns to nsWindow::CreateLayerManager, where we will also now resume
the compositor if required.

Finally, we must ensure that we manually trigger a paint, both in the
parent and content processes. On other platforms this occurs
automatically following a GPU process loss through various refresh
driver events. On Android, however, nothing causes the refresh driver
to paint by itself, and we cannot receive input without first
initializing our APZ controllers, which does not happen until the
compositor receives a display list. We therefore must manually
schedule a paint. We do so from nsWindow::NotifyCompositorSessionLost
for the parent process, and BrowserChild::ReinitRendering for content
processes.

Differential Revision: https://phabricator.services.mozilla.com/D131232
2021-11-29 20:52:31 +00:00
..
bindings Bug 1724994 - Promote GraphRunner to higher priority on Android. r=agi,pehrsons 2021-08-24 15:13:31 +00:00
jni Bug 1739367 - Replaces mozilla::Tuple with std::tuple in widget/ r=emilio,geckoview-reviewers,owlish 2021-11-10 12:57:43 +00:00
AndroidAlerts.cpp
AndroidAlerts.h
AndroidBridge.cpp
AndroidBridge.h Bug 1722397 - Add a way to use the native accent color for selection and form controls on Android. r=agi 2021-07-27 17:12:15 +00:00
AndroidBridgeUtilities.h
AndroidCompositorWidget.cpp Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
AndroidCompositorWidget.h Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
AndroidContentController.cpp
AndroidContentController.h
AndroidUiThread.cpp Bug 1713378: Use a more accurate stack top pointer when registering the Android UI thread with the profiler; r=gerald,geckoview-reviewers,owlish 2021-05-31 22:44:19 +00:00
AndroidUiThread.h
AndroidView.h
AndroidVsync.cpp
AndroidVsync.h
Base64UtilsSupport.h
CompositorWidgetChild.cpp Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
CompositorWidgetChild.h Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
CompositorWidgetParent.cpp Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
CompositorWidgetParent.h Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
EventDispatcher.cpp Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp 2021-07-13 11:52:42 +00:00
EventDispatcher.h
GeckoBatteryManager.h
GeckoEditableSupport.cpp Bug 1741312 - Set reversed selection from selection cache. r=geckoview-reviewers,agi 2021-11-17 02:32:45 +00:00
GeckoEditableSupport.h Bug 1724811 - Use selection data from notification instead of get current selection. r=geckoview-reviewers,agi 2021-09-06 12:38:26 +00:00
GeckoNetworkManager.h
GeckoProcessManager.cpp
GeckoProcessManager.h
GeckoScreenOrientation.h
GeckoSystemStateListener.h
GeckoTelemetryDelegate.h
GeckoVRManager.h
GeckoViewSupport.h Bug 1690296: Add callback to notify app to fully display its dynamic toolbar; r=agi,owlish,hiro 2021-07-27 21:50:03 +00:00
GfxInfo.cpp Bug 1742987 - Block webrender on Android on PowerVR Rogue G6110 GPUs. r=gfx-reviewers,aosmond 2021-11-25 20:47:17 +00:00
GfxInfo.h Bug 1714673 - Fix gfx blocklist support on Android r=jrmuizel 2021-06-10 14:15:04 +00:00
ImageDecoderSupport.cpp Bug 1709406 - Propagate errors from ImageDecoderSupport. r=aklotz 2021-05-13 23:50:18 +00:00
ImageDecoderSupport.h
InProcessAndroidCompositorWidget.cpp Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
InProcessAndroidCompositorWidget.h Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
MediaKeysEventSourceFactory.cpp
PCompositorWidget.ipdl Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
PlatformWidgetTypes.ipdlh Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
ScreenHelperAndroid.cpp
ScreenHelperAndroid.h
Telemetry.h
WebAuthnTokenManager.h
WebExecutorSupport.cpp Bug 1739367 - Replaces mozilla::Tuple with std::tuple in widget/ r=emilio,geckoview-reviewers,owlish 2021-11-10 12:57:43 +00:00
WebExecutorSupport.h
WindowEvent.h
components.conf
moz.build Bug 1741156 - Initial GPU process implementation on Android. r=aosmond,agi 2021-11-29 20:52:31 +00:00
nsAppShell.cpp Backed out changeset 65f8b0434e1e (bug 1708580) for causing Btime failures. CLOSED TREE 2021-08-14 00:44:48 +03:00
nsAppShell.h
nsClipboard.cpp
nsClipboard.h
nsDeviceContextAndroid.cpp
nsDeviceContextAndroid.h
nsIAndroidBridge.idl
nsLookAndFeel.cpp Bug 1742796 - Use a more transparent color for dark mode / Android selection. r=geckoview-reviewers,owlish 2021-11-25 20:09:25 +00:00
nsLookAndFeel.h Bug 1722353 - Minor cleanup in Android's nsLookAndFeel. r=geckoview-reviewers,agi 2021-07-26 21:17:00 +00:00
nsPrintSettingsServiceAndroid.cpp
nsPrintSettingsServiceAndroid.h
nsUserIdleServiceAndroid.cpp
nsUserIdleServiceAndroid.h
nsWidgetFactory.cpp
nsWidgetFactory.h
nsWindow.cpp Bug 1741156 - Reinitialize compositor and request repaint after GPU process restart. r=aosmond,geckoview-reviewers,agi 2021-11-29 20:52:31 +00:00
nsWindow.h Bug 1741156 - Reinitialize compositor and request repaint after GPU process restart. r=aosmond,geckoview-reviewers,agi 2021-11-29 20:52:31 +00:00