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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user