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.

Depends on D92008

Differential Revision: https://phabricator.services.mozilla.com/D92009
This commit is contained in:
Matt Woodrow
2020-10-01 02:56:31 +00:00
parent 61c851f4fd
commit 62379a617b
4 changed files with 12 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");