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 341633 efb6717918db74a2543ba72cbdbbe25b7fa104ec
parent 341632 ad1604d8bee04dd5a49fa69379ecc0acce309c79
child 341634 c0581820535a047e4129a61f117cd1d7f83c889e
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [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)) {