GetNextExternalImageId() is implemented as temporal way. It should be addressed. https://dxr.mozilla.org/mozilla-central/source/gfx/layers/wr/WebRenderBridgeChild.cpp#112
attachment 8857883 [details] [diff] [review] moved actual external image id allocation to CompositorBridgeChild. And GetNextExternalImageId() is also added to ImageBridgeChild. It is going to be used to allocate external image ids to TextureClients/TextureHosts.
Since Bug 1343764, host sides already allocate external image ids to WebRenderTextureHosts. There is some inconsistency between client and host side, this bug is a first step to address the inconsistency.
Created attachment 8857890 [details] [diff] [review] patch - Fix GetNextExternalImageId()
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/projects/graphics/rev/de44ef87432b Fix GetNextExternalImageId() r=jrmuizel