Bug 1308057 - EXT_disjoint_timer_query is no longer Draft. - r=ethlin draft
authorJeff Gilbert (:jgilbert) <jgilbert@mozilla.com>
Fri, 04 Nov 2016 15:55:06 -0700
changeset 437472 e52f53a15755dab1ca3585b79fcb21607544f976
parent 437471 a740d02c5bdaf5d552c3664b65cddd6efa06445d
child 437473 dcef3279ca2ea94cda058c07c6bf75dc8af13eb1
child 437532 0282b7fb8cd0555c745f0b1caeca891fbee729a3
push id35421
push userbmo:jgilbert@mozilla.com
push dateThu, 10 Nov 2016 23:13:55 +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)