Bug 1808155 Part 4: Make ExternalNativeSurfaceKey encode the size only for non-extern...
commit0f3fadd398d07637a0402ad7476b8dac44a5a817
authorBrad Werth <bwerth@mozilla.com>
Wed, 19 Apr 2023 20:02:47 +0000 (19 20:02 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 19 Apr 2023 20:02:47 +0000 (19 20:02 +0000)
tree88c1f97ce26e12607885ece1ee714a7d5a41c113
parentf79f1d7957d538b51f818236f4f4721826deb593
Bug 1808155 Part 4: Make ExternalNativeSurfaceKey encode the size only for non-external surfaces. r=gw

The size of the surface is irrelevant for external surfaces, since it is
handled by the native compositor with each call to AttachExternalImage. By
removing the size from the hash key, this patch ensures that real or
imagined changes to surface sizes for external surfaces will no longer
call create_compositor_external_surface, thrashing the resources of the
native compositor.

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