Bug 907254 - reftest.js doesnt need anymore to avoid using GfxInfo on B2G - r=jrmuizel

This commit is contained in:
Benoit Jacob 2013-08-21 18:03:07 +02:00
Родитель 6d3d4149ea
Коммит 70956521e5
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -538,14 +538,6 @@ function BuildConditionSandbox(aURL) {
sandbox.smallScreen = true;
}
#if REFTEST_B2G
// XXX nsIGfxInfo isn't available in B2G
sandbox.d2d = false;
sandbox.azureQuartz = false;
sandbox.azureSkia = false;
sandbox.azureSkiaGL = false;
sandbox.contentSameGfxBackendAsCanvas = false;
#else
var gfxInfo = (NS_GFXINFO_CONTRACTID in CC) && CC[NS_GFXINFO_CONTRACTID].getService(CI.nsIGfxInfo);
try {
sandbox.d2d = gfxInfo.D2DEnabled;
@ -559,7 +551,6 @@ function BuildConditionSandbox(aURL) {
// true if we are using the same Azure backend for rendering canvas and content
sandbox.contentSameGfxBackendAsCanvas = info.AzureContentBackend == info.AzureCanvasBackend
|| (info.AzureContentBackend == "none" && info.AzureCanvasBackend == "cairo");
#endif
sandbox.layersGPUAccelerated =
gWindowUtils.layerManagerType != "Basic";