Closed Bug 1547097 Opened 5 years ago Closed 5 years ago

Support snapshotting with BGRA instead of RGBA

Categories

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

Other Branch
defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(2 files)

For reftest snapshotting, we do a glReadPixels which apparently fails on GLES if we're trying to read a BGRA8. On my Pixel 2 at least the glReadPixels operation is failing and the GLError is set to INVALID_OPERATION.

Jamie says we should change the snapshotting code to use RGBA8 instead for GLES.

Assignee: nobody → kats

The Rgba8 enum value is redundant with the Standard(ImageFormat::RGBA8) value,
this patch collapses the former into the latter. When then makes the entire
ReadPixelsFormat redundant, so we can get rid of it completely.

BGRA may not be supported on GLES implementations, such as on the
Pixel 2 device. Since WR on Android uses GLES, we should use RGBA
when getting snapshots so that it actually works instead of failing
silently.

Depends on D29059

Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8489b0f35bd6
Remove ReadPixelsFormat. r=kvark
https://hg.mozilla.org/integration/autoland/rev/f1a87f870052
Get snapshots in RGBA8 instead of BGRA8 on Android. r=jnicol
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: