Bug 1705151 - Fix a leak of native compositor surfaces when sub-slice count changes r=gfx-reviewers,lsalzman
Bug 1705151 - Fix a leak of native compositor surfaces when sub-slice count changes r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D112065

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/b6fe7257c4ad3d4e0bdf8657b987688979d27109

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender