mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1278302 - Add failureid for WARP failIfMajorPerformanceCaveat. r=jrmuizel
MozReview-Commit-ID: 2Ieeaqp4Sgj --HG-- extra : rebase_source : cdb3cfc40bd85a1bc1e8943c2f60b5d9f08b1b2e
This commit is contained in:
parent
4934adbfe6
commit
454efa4e56
@ -937,6 +937,8 @@ WebGLContext::SetDimensions(int32_t signedWidth, int32_t signedHeight)
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user