This should remove the allocation and copy in
TextureD3D::ensureRenderTarget() in some situations.

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

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