Bug 1668302 - Expose SWGL state to TextureFactoryIdentifier. r=jrmuizel

This is mostly preparing for the future state where we might have SWGL WR mixed with real hardware webrender, and want a way to lookup the state per-compositor.

Differential Revision: https://phabricator.services.mozilla.com/D92009
This commit is contained in:
Matt Woodrow
2020-10-01 22:19:15 +00:00
parent 8469f5d438
commit 6d9ff78d92
5 changed files with 14 additions and 6 deletions

View File

@@ -158,7 +158,7 @@ CompositorBridgeChild* WebRenderLayerManager::GetCompositorBridgeChild() {
}
void WebRenderLayerManager::GetBackendName(nsAString& name) {
if (gfx::gfxVars::UseSoftwareWebRender()) {
if (WrBridge()->GetTextureFactoryIdentifier().mUsingSoftwareWebRender) {
name.AssignLiteral("WebRender (Software)");
} else {
name.AssignLiteral("WebRender");