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
parent 93c2d104ef
commit 1e9108582d

View File

@ -538,14 +538,6 @@ function BuildConditionSandbox(aURL) {
sandbox.smallScreen = true; 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); var gfxInfo = (NS_GFXINFO_CONTRACTID in CC) && CC[NS_GFXINFO_CONTRACTID].getService(CI.nsIGfxInfo);
try { try {
sandbox.d2d = gfxInfo.D2DEnabled; 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 // true if we are using the same Azure backend for rendering canvas and content
sandbox.contentSameGfxBackendAsCanvas = info.AzureContentBackend == info.AzureCanvasBackend sandbox.contentSameGfxBackendAsCanvas = info.AzureContentBackend == info.AzureCanvasBackend
|| (info.AzureContentBackend == "none" && info.AzureCanvasBackend == "cairo"); || (info.AzureContentBackend == "none" && info.AzureCanvasBackend == "cairo");
#endif
sandbox.layersGPUAccelerated = sandbox.layersGPUAccelerated =
gWindowUtils.layerManagerType != "Basic"; gWindowUtils.layerManagerType != "Basic";