Closed Bug 1594114 Opened 8 months ago Closed 8 months ago

Add SurfaceFormat for OS/endian-specific preferred format

Categories

(Core :: Graphics, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

OS_RGBA and OS_RGBX should be the preferred color channel and byte ordering, as determined at compile time. This should default to BGRA as is the case today. They will be used to facilitate the initial transition to RGBA on Android (and Linux).

OS_RGBA and OS_RGBX are defined as the preferred surface format for the
platform and architecture, fixed at compile time. Today this will be
initially defined as B8G8R8A8. The future intent is that once all parts
of the system support all configurations, then we can use R8G8B8A8 on
certain platforms (e.g. Android, Linux, Mac) and invert it on big-endian
architectures.

Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de6cf4a44c01
Add SurfaceFormat::OS_RGBA and OS_RGBX to define preferred format. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.