Bug 1773156 Part 2: Don't destroy tile cache backdrop surfaces during prepare_for_new...
commit9000a5c7ea69cbf8c79f133ed852b5d99d1258ca
authorBrad Werth <bwerth@mozilla.com>
Fri, 10 Jun 2022 00:35:16 +0000 (10 00:35 +0000)
committerBrad Werth <bwerth@mozilla.com>
Fri, 10 Jun 2022 00:35:16 +0000 (10 00:35 +0000)
tree21980b475efd7644bb904628fb47f068399e2e8f
parent461675e683063506bc448fe6e119fbf7dcdba398
Bug 1773156 Part 2: Don't destroy tile cache backdrop surfaces during prepare_for_new_scene. r=gw

It's not necessary to clear the tile cache backdrop surface when a new
scene arrives. Doing so has unintended consequences because clearing the
backdrop surface forces the destruction of the associated native surface.
That native surface will very likely just have to be recreated. If the new
scene doesn't have a backdrop, or has a different backdrop, the logic in
take_context is sufficient to destroy the old one.

Depends on D148704

Differential Revision: https://phabricator.services.mozilla.com/D148705
gfx/wr/webrender/src/picture.rs