Add Advanced Layers to the compositor line in about:support. (bug 1365879 part 22, r=milan)
This commit is contained in:
@@ -2330,6 +2330,26 @@ nsDOMWindowUtils::GetLayerManagerRemote(bool* retval)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetUsingAdvancedLayers(bool* retval)
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget = GetWidget();
|
||||
if (!widget) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
LayerManager *mgr = widget->GetLayerManager();
|
||||
if (!mgr) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*retval = false;
|
||||
if (KnowsCompositor* fwd = mgr->AsKnowsCompositor()) {
|
||||
*retval = fwd->GetTextureFactoryIdentifier().mUsingAdvancedLayers;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetSupportsHardwareH264Decoding(JS::MutableHandle<JS::Value> aPromise)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user