summaryrefslogtreecommitdiffstats
path: root/widget/android/GfxInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/android/GfxInfo.cpp')
-rw-r--r--widget/android/GfxInfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/widget/android/GfxInfo.cpp b/widget/android/GfxInfo.cpp
index 6e6d3bf47b..267beaf330 100644
--- a/widget/android/GfxInfo.cpp
+++ b/widget/android/GfxInfo.cpp
@@ -667,6 +667,14 @@ nsresult GfxInfo::GetFeatureStatusImpl(
return NS_OK;
}
+ if (aFeature == FEATURE_WEBGPU) {
+ // Ensure WebGPU is disabled by default on Android until it is better
+ // tested.
+ *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
+ aFailureId = "FEATURE_FAILURE_WEBGPU_ANDROID";
+ return NS_OK;
+ }
+
return GfxInfoBase::GetFeatureStatusImpl(
aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, aFailureId, &os);
}