Open Bug 1558774 Opened 5 years ago Updated 23 days ago

Webrender would like a way of detecting which version of Android we are running on

Categories

(Core :: Graphics: WebRender, enhancement, P3)

Unspecified
Android
enhancement

Tracking

()

People

(Reporter: jnicol, Unassigned)

References

(Blocks 2 open bugs)

Details

For more specific detection of driver bugs.

For example, in bug 1556763, it appears there is an Adreno bug where KHR_blend_equation_advanced doesn't work correctly on Android 8 and earlier, but it appears to have been fixed for Android 9. It would be nice to only have to disable this feature on Android 8 and earlier.

C++ code can detect the Android version using jni::GetAPIVersion(). But we probably want to correctly identify driver bugs in wrench (and other users of webrender) too.

Either we can try to add the detection code to webrender itself (might be icky) or we could add an argument to Device::new() for "platform info", which contains the android sdk version in android builds. I'm leaning towards the latter. Then gecko can easily pass jni::GetAPIVersion in to that, and wrench might need some icky code, but better in wrench than webrender itself.

Blocks: wr-android
Priority: -- → P3
Severity: normal → S3
Blocks: wr-todos
You need to log in before you can comment on or make changes to this bug.