Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
MozillaFirefox.11699
mozilla-bmo1005535.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mozilla-bmo1005535.patch of Package MozillaFirefox.11699
# HG changeset patch # User Steve Singer <steve@ssinger.info> # Date 1560926147 -7200 # Wed Jun 19 08:35:47 2019 +0200 # Node ID 09fb43d265d704ce8bda75441b0bdb0d3576b0b3 # Parent 1f6f73d1f75eb81fc98ff51827df2ef52f4904e4 Bug 1005535 - Get skia GPU building on big endian. diff -r 1f6f73d1f75e -r 09fb43d265d7 gfx/skia/skia/include/core/SkColorPriv.h --- a/gfx/skia/skia/include/core/SkColorPriv.h Wed Jun 19 08:35:45 2019 +0200 +++ b/gfx/skia/skia/include/core/SkColorPriv.h Wed Jun 19 08:35:47 2019 +0200 @@ -55,6 +55,7 @@ * Here we enforce this constraint. */ +/* #ifdef SK_CPU_BENDIAN #define SK_RGBA_R32_SHIFT 24 #define SK_RGBA_G32_SHIFT 16 @@ -66,6 +67,16 @@ #define SK_RGBA_B32_SHIFT 16 #define SK_RGBA_A32_SHIFT 24 #endif +*/ + #define SK_RGBA_R32_SHIFT 0 + #define SK_RGBA_G32_SHIFT 8 + #define SK_RGBA_B32_SHIFT 16 + #define SK_RGBA_A32_SHIFT 24 + + #define SK_BGRA_B32_SHIFT 0 + #define SK_BGRA_G32_SHIFT 8 + #define SK_BGRA_R32_SHIFT 16 + #define SK_BGRA_A32_SHIFT 24 #define SkGetPackedA32(packed) ((uint32_t)((packed) << (24 - SK_A32_SHIFT)) >> 24) #define SkGetPackedR32(packed) ((uint32_t)((packed) << (24 - SK_R32_SHIFT)) >> 24) diff -r 1f6f73d1f75e -r 09fb43d265d7 gfx/skia/skia/include/core/SkImageInfo.h --- a/gfx/skia/skia/include/core/SkImageInfo.h Wed Jun 19 08:35:45 2019 +0200 +++ b/gfx/skia/skia/include/core/SkImageInfo.h Wed Jun 19 08:35:47 2019 +0200 @@ -84,7 +84,7 @@ #elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) kN32_SkColorType = kRGBA_8888_SkColorType, #else - #error "SK_*32_SHIFT values must correspond to BGRA or RGBA byte order" + kN32_SkColorType = kBGRA_8888_SkColorType #endif }; diff -r 1f6f73d1f75e -r 09fb43d265d7 gfx/skia/skia/include/gpu/GrTypes.h --- a/gfx/skia/skia/include/gpu/GrTypes.h Wed Jun 19 08:35:45 2019 +0200 +++ b/gfx/skia/skia/include/gpu/GrTypes.h Wed Jun 19 08:35:47 2019 +0200 @@ -344,15 +344,13 @@ static const int kGrPixelConfigCnt = kLast_GrPixelConfig + 1; // Aliases for pixel configs that match skia's byte order. -#ifndef SK_CPU_LENDIAN - #error "Skia gpu currently assumes little endian" -#endif + #if SK_PMCOLOR_BYTE_ORDER(B,G,R,A) static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfig; #elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) static const GrPixelConfig kSkia8888_GrPixelConfig = kRGBA_8888_GrPixelConfig; #else - #error "SK_*32_SHIFT values must correspond to GL_BGRA or GL_RGBA format." + static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfig; #endif /** diff -r 1f6f73d1f75e -r 09fb43d265d7 gfx/skia/skia/include/private/GrColor.h --- a/gfx/skia/skia/include/private/GrColor.h Wed Jun 19 08:35:45 2019 +0200 +++ b/gfx/skia/skia/include/private/GrColor.h Wed Jun 19 08:35:47 2019 +0200 @@ -74,7 +74,7 @@ * Since premultiplied means that alpha >= color, we construct a color with * each component==255 and alpha == 0 to be "illegal" */ -#define GrColor_ILLEGAL (~(0xFF << GrColor_SHIFT_A)) +#define GrColor_ILLEGAL ((uint32_t)(~(0xFF << GrColor_SHIFT_A))) #define GrColor_WHITE 0xFFFFFFFF #define GrColor_TRANSPARENT_BLACK 0x0 diff -r 1f6f73d1f75e -r 09fb43d265d7 gfx/skia/skia/src/core/SkColorData.h --- a/gfx/skia/skia/src/core/SkColorData.h Wed Jun 19 08:35:45 2019 +0200 +++ b/gfx/skia/skia/src/core/SkColorData.h Wed Jun 19 08:35:47 2019 +0200 @@ -82,7 +82,7 @@ #elif LOCAL_PMCOLOR_SHIFTS_EQUIVALENT_TO_BGRA #define SK_PMCOLOR_IS_BGRA #else - #error "need 32bit packing to be either RGBA or BGRA" + #define SK_PMCOLOR_IS_BGRA #endif #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor