In this PR we try to refine the management of external textures for Texture widgets by adding the functionality of an ExternalTextureRegistry to the UIWidgetsPanelWrapper, including:
(1) cache the (external texture)-(internal texture id) mapping so that an external texture is only registered on the C++ side once
(2) unregister the external textures on the C++ side when the UIWidgets panel is destroyed
In this PR we try to refine the management of external textures for Texture widgets by adding the functionality of an
ExternalTextureRegistry
to the UIWidgetsPanelWrapper, including:(1) cache the (external texture)-(internal texture id) mapping so that an external texture is only registered on the C++ side once (2) unregister the external textures on the C++ side when the UIWidgets panel is destroyed