Bug 1278302 - Add failureid for WARP failIfMajorPerformanceCaveat. r=jrmuizel, a=lizzard
authorBenoit Girard <b56girard@gmail.com>
Mon, 06 Jun 2016 13:33:13 -0400
changeset 339620 efb6717918db74a2543ba72cbdbbe25b7fa104ec
parent 339619 ad1604d8bee04dd5a49fa69379ecc0acce309c79
child 339621 c0581820535a047e4129a61f117cd1d7f83c889e
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, lizzard
bugs1278302
milestone49.0a2
Bug 1278302 - Add failureid for WARP failIfMajorPerformanceCaveat. r=jrmuizel, a=lizzard MozReview-Commit-ID: 2Ieeaqp4Sgj
dom/canvas/WebGLContext.cpp
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -932,16 +932,18 @@ WebGLContext::SetDimensions(int32_t sign
         ThrowEvent_WebGLContextCreationError(text);
         return NS_ERROR_FAILURE;
     }
     MOZ_ASSERT(gl);
     MOZ_ASSERT_IF(mOptions.alpha, gl->Caps().alpha);
 
     if (mOptions.failIfMajorPerformanceCaveat) {
         if (gl->IsWARP()) {
+            Telemetry::Accumulate(Telemetry::CANVAS_WEBGL_FAILURE_ID,
+                                  NS_LITERAL_CSTRING("FEATURE_FAILURE_PERF_WARP"));
             const nsLiteralCString text("failIfMajorPerformanceCaveat: Driver is not"
                                         " hardware-accelerated.");
             ThrowEvent_WebGLContextCreationError(text);
             return NS_ERROR_FAILURE;
         }
     }
 
     if (!ResizeBackbuffer(width, height)) {