Bug 778595; reftest fuzz based on cavnas/content backend mismatch. r=roc
authorNicholas Cameron <ncameron@mozilla.com>
Tue, 31 Jul 2012 13:46:04 +1200
changeset 100935 ab354866845bebab1a99d8bed067e11e73a15364
parent 100934 037783860cab6c3ae6e7be961fe3ba8fca625a2c
child 100936 922f6d860c9265baa4e7dd4a5d378884e10448a9
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersroc
bugs778595
milestone17.0a1
Bug 778595; reftest fuzz based on cavnas/content backend mismatch. r=roc
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -481,18 +481,23 @@ function BuildConditionSandbox(aURL) {
  
     
     var gfxInfo = (NS_GFXINFO_CONTRACTID in CC) && CC[NS_GFXINFO_CONTRACTID].getService(CI.nsIGfxInfo);
     try {
       sandbox.d2d = gfxInfo.D2DEnabled;
     } catch (e) {
       sandbox.d2d = false;
     }
-    sandbox.azureQuartz = gfxInfo.getInfo().AzureCanvasBackend == "quartz";
-    sandbox.azureSkia = gfxInfo.getInfo().AzureCanvasBackend == "skia";
+
+    var info = gfxInfo.getInfo();
+    sandbox.azureQuartz = info.AzureCanvasBackend == "quartz";
+    sandbox.azureSkia = info.AzureCanvasBackend == "skia";
+    // 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");
 
     sandbox.layersGPUAccelerated =
       gWindowUtils.layerManagerType != "Basic";
     sandbox.layersOpenGL =
       gWindowUtils.layerManagerType == "OpenGL";
 
     // Shortcuts for widget toolkits.
     sandbox.Android = xr.OS == "Android";