-
Jamie Nicol authored
Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin Android-components listens to the GeckoView callback onFirstContentfulPaint to track whether a contentful paint has occured, in order to decide when to thumbnail a tab. Currently this gets fired once per tab. However, when the GeckoSession is paused, we clear cached resources in the compositor. This means that when the session is resumed, the compositor does not have the necessary information to render the page (such as painted content buffers, or the webrender display list). Because android-components attempts to capture a new thumbnail immediately upon resuming, it ends up capturing a blank thumbnail. To fix this, add a new callback onPaintStatusReset() which is invoked when the cached resources are cleared. Android-components can listen for this to be informed when the contentful paint is no longer visible. It can then wait until the subsequent contentful paint occurs before capturing the thumbnail. Differential Revision: https://phabricator.services.mozilla.com/D87341
54ed8551