• Bug 1579235 - Part 7 - Fix UV rect calculation for external textures.…

    … r=Bert
    
    This patch fixes an oversight in part 5 of this patch series that
    could result in an incorrect UV rect being used for an external
    texture that uses a custom UV rect.
    
    When the texture is an external texture, the UV rect is not known when
    the external surface descriptor is created, because external textures
    are not resolved until the lock() callback is invoked at the start of
    the frame render. To handle this, query the texture resolver for the
    UV rect if it's an external texture, otherwise use the default UV rect.
    
    Differential Revision: https://phabricator.services.mozilla.com/D64687
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/8f267ed8f2e3d09ced8c665af0a6db3694197116
    gw3583 authored and moz-gfx committed Mar 2, 2020