|
|
cd486f |
diff -up firefox-60.0/gfx/skia/skia/include/core/SkColorPriv.h.big-endian firefox-60.0/gfx/skia/skia/include/core/SkColorPriv.h
|
|
|
cd486f |
--- firefox-60.0/gfx/skia/skia/include/core/SkColorPriv.h.big-endian 2018-04-09 22:50:48.000000000 +0200
|
|
|
cd486f |
+++ firefox-60.0/gfx/skia/skia/include/core/SkColorPriv.h 2018-04-18 11:51:38.748680174 +0200
|
|
|
cd486f |
@@ -54,18 +54,19 @@ static inline U8CPU SkUnitScalarClampToB
|
|
|
cd486f |
*
|
|
|
cd486f |
* Here we enforce this constraint.
|
|
|
cd486f |
*/
|
|
|
cd486f |
-
|
|
|
cd486f |
+/*
|
|
|
cd486f |
#ifdef SK_CPU_BENDIAN
|
|
|
cd486f |
#define SK_RGBA_R32_SHIFT 24
|
|
|
cd486f |
#define SK_RGBA_G32_SHIFT 16
|
|
|
cd486f |
#define SK_RGBA_B32_SHIFT 8
|
|
|
cd486f |
#define SK_RGBA_A32_SHIFT 0
|
|
|
cd486f |
#else
|
|
|
cd486f |
+*/
|
|
|
cd486f |
#define SK_RGBA_R32_SHIFT 0
|
|
|
cd486f |
#define SK_RGBA_G32_SHIFT 8
|
|
|
cd486f |
#define SK_RGBA_B32_SHIFT 16
|
|
|
cd486f |
#define SK_RGBA_A32_SHIFT 24
|
|
|
cd486f |
-#endif
|
|
|
cd486f |
+/*#endif*/
|
|
|
cd486f |
|
|
|
cd486f |
#define SkGetPackedA32(packed) ((uint32_t)((packed) << (24 - SK_A32_SHIFT)) >> 24)
|
|
|
cd486f |
#define SkGetPackedR32(packed) ((uint32_t)((packed) << (24 - SK_R32_SHIFT)) >> 24)
|
|
|
cd486f |
diff -up firefox-60.0/gfx/skia/skia/include/core/SkImageInfo.h.big-endian firefox-60.0/gfx/skia/skia/include/core/SkImageInfo.h
|
|
|
cd486f |
--- firefox-60.0/gfx/skia/skia/include/core/SkImageInfo.h.big-endian 2018-04-09 22:50:48.000000000 +0200
|
|
|
cd486f |
+++ firefox-60.0/gfx/skia/skia/include/core/SkImageInfo.h 2018-04-18 11:51:38.748680174 +0200
|
|
|
cd486f |
@@ -84,7 +84,8 @@ enum SkColorType {
|
|
|
cd486f |
#elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A)
|
|
|
cd486f |
kN32_SkColorType = kRGBA_8888_SkColorType,
|
|
|
cd486f |
#else
|
|
|
cd486f |
- #error "SK_*32_SHIFT values must correspond to BGRA or RGBA byte order"
|
|
|
cd486f |
+ //#error "SK_*32_SHIFT values must correspond to BGRA or RGBA byte order"
|
|
|
cd486f |
+ kN32_SkColorType = kBGRA_8888_SkColorType
|
|
|
cd486f |
#endif
|
|
|
cd486f |
};
|
|
|
cd486f |
|
|
|
cd486f |
diff -up firefox-60.0/gfx/skia/skia/include/gpu/GrTypes.h.big-endian firefox-60.0/gfx/skia/skia/include/gpu/GrTypes.h
|
|
|
cd486f |
--- firefox-60.0/gfx/skia/skia/include/gpu/GrTypes.h.big-endian 2018-04-09 22:50:48.000000000 +0200
|
|
|
cd486f |
+++ firefox-60.0/gfx/skia/skia/include/gpu/GrTypes.h 2018-04-18 11:51:38.748680174 +0200
|
|
|
cd486f |
@@ -344,15 +344,13 @@ enum GrPixelConfig {
|
|
|
cd486f |
static const int kGrPixelConfigCnt = kLast_GrPixelConfig + 1;
|
|
|
cd486f |
|
|
|
cd486f |
// Aliases for pixel configs that match skia's byte order.
|
|
|
cd486f |
-#ifndef SK_CPU_LENDIAN
|
|
|
cd486f |
- #error "Skia gpu currently assumes little endian"
|
|
|
cd486f |
-#endif
|
|
|
cd486f |
#if SK_PMCOLOR_BYTE_ORDER(B,G,R,A)
|
|
|
cd486f |
static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfig;
|
|
|
cd486f |
#elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A)
|
|
|
cd486f |
static const GrPixelConfig kSkia8888_GrPixelConfig = kRGBA_8888_GrPixelConfig;
|
|
|
cd486f |
#else
|
|
|
cd486f |
- #error "SK_*32_SHIFT values must correspond to GL_BGRA or GL_RGBA format."
|
|
|
cd486f |
+ static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfig;
|
|
|
cd486f |
+ static const GrPixelConfig kSkiaGamma8888_GrPixelConfig = kSBGRA_8888_GrPixelConfig;
|
|
|
cd486f |
#endif
|
|
|
cd486f |
|
|
|
cd486f |
/**
|
|
|
cd486f |
diff -up firefox-60.0/gfx/skia/skia/src/core/SkColorData.h.big-endian firefox-60.0/gfx/skia/skia/src/core/SkColorData.h
|
|
|
cd486f |
--- firefox-60.0/gfx/skia/skia/src/core/SkColorData.h.big-endian 2018-04-18 13:42:06.980476156 +0200
|
|
|
cd486f |
+++ firefox-60.0/gfx/skia/skia/src/core/SkColorData.h 2018-04-18 13:42:50.493520552 +0200
|
|
|
cd486f |
@@ -31,18 +31,19 @@
|
|
|
cd486f |
*
|
|
|
cd486f |
* Here we enforce this constraint.
|
|
|
cd486f |
*/
|
|
|
cd486f |
-
|
|
|
cd486f |
+/*
|
|
|
cd486f |
#ifdef SK_CPU_BENDIAN
|
|
|
cd486f |
#define SK_BGRA_B32_SHIFT 24
|
|
|
cd486f |
#define SK_BGRA_G32_SHIFT 16
|
|
|
cd486f |
#define SK_BGRA_R32_SHIFT 8
|
|
|
cd486f |
#define SK_BGRA_A32_SHIFT 0
|
|
|
cd486f |
#else
|
|
|
cd486f |
+*/
|
|
|
cd486f |
#define SK_BGRA_B32_SHIFT 0
|
|
|
cd486f |
#define SK_BGRA_G32_SHIFT 8
|
|
|
cd486f |
#define SK_BGRA_R32_SHIFT 16
|
|
|
cd486f |
#define SK_BGRA_A32_SHIFT 24
|
|
|
cd486f |
-#endif
|
|
|
cd486f |
+//#endif
|
|
|
cd486f |
|
|
|
cd486f |
#if defined(SK_PMCOLOR_IS_RGBA) && defined(SK_PMCOLOR_IS_BGRA)
|
|
|
cd486f |
#error "can't define PMCOLOR to be RGBA and BGRA"
|