mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: Issue #986 - Remove texture layout endian-ness check for Moz2D. (d68b5ee0)
This commit is contained in:
@@ -66,18 +66,8 @@ enum class SurfaceFormat : int8_t {
|
||||
// This represents the unknown format.
|
||||
UNKNOWN,
|
||||
|
||||
// The following values are endian-independent synonyms. The _UINT32 suffix
|
||||
// indicates that the name reflects the layout when viewed as a uint32_t
|
||||
// value.
|
||||
#if MOZ_LITTLE_ENDIAN
|
||||
A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB
|
||||
X8R8G8B8_UINT32 = B8G8R8X8 // 0x00RRGGBB
|
||||
#elif MOZ_BIG_ENDIAN
|
||||
A8R8G8B8_UINT32 = A8R8G8B8, // 0xAARRGGBB
|
||||
X8R8G8B8_UINT32 = X8R8G8B8 // 0x00RRGGBB
|
||||
#else
|
||||
# error "bad endianness"
|
||||
#endif
|
||||
};
|
||||
|
||||
inline bool IsOpaque(SurfaceFormat aFormat)
|
||||
|
||||
Reference in New Issue
Block a user