Bug 635373. Add layersOpenGL to the reftest harness. r=dbaron
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 01 Apr 2011 10:33:46 +1300
changeset 64535 e36b387929f0e67b070a87f1d4b4cd82b8af0e34
parent 64534 7dceef1d4e6670968c204d1a89300c8d1efc34c9
child 64536 4096a34495a596e838926ab635f9a10766104995
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs635373
milestone2.2a1pre
Bug 635373. Add layersOpenGL to the reftest harness. r=dbaron
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -396,21 +396,21 @@ function BuildConditionSandbox(aURL) {
   
     try {
       // nsIGfxInfo is currently only implemented on Windows
       sandbox.d2d = (NS_GFXINFO_CONTRACTID in CC) && CC[NS_GFXINFO_CONTRACTID].getService(CI.nsIGfxInfo).D2DEnabled;
     } catch(e) {
       sandbox.d2d = false;
     }
 
-    if (gWindowUtils && gWindowUtils.layerManagerType != "Basic")
-      sandbox.layersGPUAccelerated = true;
-    else
-      sandbox.layersGPUAccelerated = false;
- 
+    sandbox.layersGPUAccelerated =
+      gWindowUtils && gWindowUtils.layerManagerType != "Basic";
+    sandbox.layersOpenGL =
+      gWindowUtils && gWindowUtils.layerManagerType == "OpenGL";
+
     // Shortcuts for widget toolkits.
     sandbox.Android = xr.OS == "Android";
     sandbox.cocoaWidget = xr.widgetToolkit == "cocoa";
     sandbox.gtk2Widget = xr.widgetToolkit == "gtk2";
     sandbox.qtWidget = xr.widgetToolkit == "qt";
     sandbox.winWidget = xr.widgetToolkit == "windows";
 
     var hh = CC[NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX + "http"].