Bug 1308057 - EXT_disjoint_timer_query is no longer Draft. - r=ethlin
authorJeff Gilbert (:jgilbert) <jgilbert@mozilla.com>
Fri, 04 Nov 2016 15:55:06 -0700
changeset 322521 c4e073f1cb11077951a20ea45d76d468e49b2676
parent 322520 3561904154015e53a7a59ad3c9bbf5c2ec1e705e
child 322522 2c047b0aadea94092e11b4433aef1a5e297c5697
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewersethlin
bugs1308057
milestone52.0a1
Bug 1308057 - EXT_disjoint_timer_query is no longer Draft. - r=ethlin MozReview-Commit-ID: ETtrxQcwPgg
dom/canvas/WebGLContextExtensions.cpp
--- a/dom/canvas/WebGLContextExtensions.cpp
+++ b/dom/canvas/WebGLContextExtensions.cpp
@@ -107,16 +107,18 @@ WebGLContext::IsExtensionSupported(WebGL
 {
     if (mDisableExtensions)
         return false;
 
     // Extensions for both WebGL 1 and 2.
     switch (ext) {
     // In alphabetical order
     // EXT_
+    case WebGLExtensionID::EXT_disjoint_timer_query:
+        return WebGLExtensionDisjointTimerQuery::IsSupported(this);
     case WebGLExtensionID::EXT_texture_filter_anisotropic:
         return gl->IsExtensionSupported(gl::GLContext::EXT_texture_filter_anisotropic);
 
     // OES_
     case WebGLExtensionID::OES_texture_float_linear:
         return gl->IsSupported(gl::GLFeature::texture_float_linear);
 
     // WEBGL_
@@ -206,24 +208,23 @@ WebGLContext::IsExtensionSupported(WebGL
         case WebGLExtensionID::WEBGL_draw_buffers:
             return WebGLExtensionDrawBuffers::IsSupported(this);
         default:
             // For warnings-as-errors.
             break;
         }
 
         if (gfxPrefs::WebGLDraftExtensionsEnabled()) {
+            /*
             switch (ext) {
-            case WebGLExtensionID::EXT_disjoint_timer_query:
-                return WebGLExtensionDisjointTimerQuery::IsSupported(this);
-
             default:
                 // For warnings-as-errors.
                 break;
             }
+            */
         }
     }
 
     return false;
 }
 
 static bool
 CompareWebGLExtensionName(const nsACString& name, const char* other)