WARP should never be broken. - r?jrmuizel draft
authorJeff Gilbert <jdashg@gmail.com>
Wed, 30 Mar 2016 15:45:36 -0700
changeset 346383 2b5931ca5b493a7617e7ff513205b63a774cee4f
parent 346382 482b504980a3d5935658b3779ecb73ee10b47342
child 346384 615f8a4a2de41c8e734c0643c8e8c9d68dda9ac3
push id14369
push userjgilbert@mozilla.com
push dateFri, 01 Apr 2016 01:01:39 +0000
reviewersjrmuizel
milestone48.0a1
WARP should never be broken. - r?jrmuizel From a7c96e713178d436c44c3d42dac0a54d331fc188 Mon Sep 17 00:00:00 2001 --- gfx/gl/GLLibraryEGL.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) MozReview-Commit-ID: LSJPOX0yJsN
gfx/gl/GLLibraryEGL.cpp
--- a/gfx/gl/GLLibraryEGL.cpp
+++ b/gfx/gl/GLLibraryEGL.cpp
@@ -379,27 +379,26 @@ GLLibraryEGL::EnsureInitialized(bool for
     // Check the ANGLE support the system has
     nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
     mIsANGLE = IsExtensionSupported(ANGLE_platform_angle);
 
     EGLDisplay chosenDisplay = nullptr;
 
     if (IsExtensionSupported(ANGLE_platform_angle_d3d)) {
         bool accelAngleSupport = IsAccelAngleSupported(gfxInfo);
-        bool warpAngleSupport = gfxPlatform::CanUseDirect3D11ANGLE();
+        bool warpAngleSupport = true; // WARP should never be broken.
 
         bool shouldTryAccel = forceAccel || accelAngleSupport;
         bool shouldTryWARP = !shouldTryAccel && warpAngleSupport;
         if (gfxPrefs::WebGLANGLEForceWARP()) {
             shouldTryWARP = true;
             shouldTryAccel = false;
         }
 
-        // Fallback to a WARP display if non-WARP is blacklisted,
-        // or if WARP is forced
+        // Fallback to a WARP display if non-WARP is blacklisted, or if WARP is forced.
         if (shouldTryWARP) {
             chosenDisplay = GetAndInitWARPDisplay(*this, EGL_DEFAULT_DISPLAY);
             if (chosenDisplay) {
                 mIsWARP = true;
             }
         }
 
         if (!chosenDisplay) {