зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset be62d3eb3b3b (bug 1365879)
This commit is contained in:
Родитель
e2e4b940e9
Коммит
661c4ea09c
|
@ -2330,26 +2330,6 @@ 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)
|
||||
{
|
||||
|
|
|
@ -1416,11 +1416,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
|||
*/
|
||||
readonly attribute boolean layerManagerRemote;
|
||||
|
||||
/**
|
||||
* True if advanced layers is enabled on this window, false otherwise.
|
||||
*/
|
||||
readonly attribute boolean usingAdvancedLayers;
|
||||
|
||||
/**
|
||||
* Returns a Promise that will be resolved with a string once the capabilities
|
||||
* of the h264 decoder have been determined.
|
||||
|
|
|
@ -175,7 +175,6 @@ struct TextureFactoryIdentifier
|
|||
bool mSupportsPartialUploads;
|
||||
bool mSupportsComponentAlpha;
|
||||
bool mSupportsBackdropCopyForComponentAlpha;
|
||||
bool mUsingAdvancedLayers;
|
||||
SyncHandle mSyncHandle;
|
||||
|
||||
explicit TextureFactoryIdentifier(LayersBackend aLayersBackend = LayersBackend::LAYERS_NONE,
|
||||
|
@ -194,7 +193,6 @@ struct TextureFactoryIdentifier
|
|||
, mSupportsPartialUploads(aSupportsPartialUploads)
|
||||
, mSupportsComponentAlpha(aSupportsComponentAlpha)
|
||||
, mSupportsBackdropCopyForComponentAlpha(true)
|
||||
, mUsingAdvancedLayers(false)
|
||||
, mSyncHandle(aSyncHandle)
|
||||
{}
|
||||
};
|
||||
|
|
|
@ -304,7 +304,6 @@ struct ParamTraits<mozilla::layers::TextureFactoryIdentifier>
|
|||
WriteParam(aMsg, aParam.mSupportsPartialUploads);
|
||||
WriteParam(aMsg, aParam.mSupportsComponentAlpha);
|
||||
WriteParam(aMsg, aParam.mSupportsBackdropCopyForComponentAlpha);
|
||||
WriteParam(aMsg, aParam.mUsingAdvancedLayers);
|
||||
WriteParam(aMsg, aParam.mSyncHandle);
|
||||
}
|
||||
|
||||
|
@ -318,7 +317,6 @@ struct ParamTraits<mozilla::layers::TextureFactoryIdentifier>
|
|||
ReadParam(aMsg, aIter, &aResult->mSupportsPartialUploads) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mSupportsComponentAlpha) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mSupportsBackdropCopyForComponentAlpha) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mUsingAdvancedLayers) &&
|
||||
ReadParam(aMsg, aIter, &aResult->mSyncHandle);
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -183,7 +183,6 @@ LayerManagerMLGPU::GetTextureFactoryIdentifier()
|
|||
ident = mDevice->GetTextureFactoryIdentifier();
|
||||
}
|
||||
ident.mSupportsBackdropCopyForComponentAlpha = SupportsBackdropCopyForComponentAlpha();
|
||||
ident.mUsingAdvancedLayers = true;
|
||||
return ident;
|
||||
}
|
||||
|
||||
|
|
|
@ -393,22 +393,16 @@ var snapshotFormatters = {
|
|||
}
|
||||
|
||||
// graphics-features-tbody
|
||||
let compositor = "";
|
||||
if (data.windowLayerManagerRemote) {
|
||||
compositor = data.windowLayerManagerType;
|
||||
if (data.windowUsingAdvancedLayers) {
|
||||
compositor += " (Advanced Layers)";
|
||||
}
|
||||
} else {
|
||||
compositor = "BasicLayers (" + strings.GetStringFromName("mainThreadNoOMTC") + ")";
|
||||
}
|
||||
|
||||
let compositor = data.windowLayerManagerRemote
|
||||
? data.windowLayerManagerType
|
||||
: "BasicLayers (" + strings.GetStringFromName("mainThreadNoOMTC") + ")";
|
||||
addRow("features", "compositing", compositor);
|
||||
delete data.windowLayerManagerRemote;
|
||||
delete data.windowLayerManagerType;
|
||||
delete data.numTotalWindows;
|
||||
delete data.numAcceleratedWindows;
|
||||
delete data.numAcceleratedWindowsMessage;
|
||||
delete data.windowUsingAdvancedLayers;
|
||||
|
||||
addRow("features", "asyncPanZoom",
|
||||
apzInfo.length
|
||||
|
|
|
@ -365,7 +365,6 @@ var dataProviders = {
|
|||
data.numTotalWindows++;
|
||||
data.windowLayerManagerType = winUtils.layerManagerType;
|
||||
data.windowLayerManagerRemote = winUtils.layerManagerRemote;
|
||||
data.windowUsingAdvancedLayers = winUtils.usingAdvancedLayers;
|
||||
} catch (e) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -252,9 +252,6 @@ const SNAPSHOT_SCHEMA = {
|
|||
windowLayerManagerRemote: {
|
||||
type: "boolean",
|
||||
},
|
||||
windowUsingAdvancedLayers: {
|
||||
type: "boolean",
|
||||
},
|
||||
currentAudioBackend: {
|
||||
type: "string",
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче