From 1a12c304334a1cbdf7675e9e9e3353eb9e64d95f Mon Sep 17 00:00:00 2001 From: roytam1 Date: Fri, 1 Apr 2022 11:20:53 +0800 Subject: [PATCH] import from UXP: Issue #986 - Remove texture layout endian-ness check for Moz2D. (d68b5ee0) --- gfx/2d/Types.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h index 72cba5f2c..1a7288acf 100644 --- a/gfx/2d/Types.h +++ b/gfx/2d/Types.h @@ -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)