517bf9
# HG changeset patch
517bf9
# User Steve Singer <steve@ssinger.info>
517bf9
# Date 1558451540 -7200
517bf9
#      Tue May 21 17:12:20 2019 +0200
517bf9
# Node ID 433beec63e6b5f409683af20a0c1ab137cc7bfad
517bf9
# Parent  c0fdccc716e80a6d289c94f5d507ae141c62a3bf
517bf9
Bug 1005535 - Get skia GPU building on big endian.
517bf9
517bf9
diff --git a/gfx/skia/skia/src/gpu/GrColor.h b/gfx/skia/skia/src/gpu/GrColor.h
517bf9
--- a/gfx/skia/skia/src/gpu/GrColor.h
517bf9
+++ b/gfx/skia/skia/src/gpu/GrColor.h
517bf9
@@ -59,17 +59,17 @@ static inline GrColor GrColorPackRGBA(un
517bf9
 #define GrColorUnpackG(color)   (((color) >> GrColor_SHIFT_G) & 0xFF)
517bf9
 #define GrColorUnpackB(color)   (((color) >> GrColor_SHIFT_B) & 0xFF)
517bf9
 #define GrColorUnpackA(color)   (((color) >> GrColor_SHIFT_A) & 0xFF)
517bf9
 
517bf9
 /**
f1b26c
  *  Since premultiplied means that alpha >= color, we construct a color with
f1b26c
  *  each component==255 and alpha == 0 to be "illegal"
f1b26c
  */
f1b26c
-#define GrColor_ILLEGAL     (~(0xFF << GrColor_SHIFT_A))
f1b26c
+#define GrColor_ILLEGAL     ((uint32_t)(~(0xFF << GrColor_SHIFT_A)))
f1b26c
 
f1b26c
 /** Normalizes and coverts an uint8_t to a float. [0, 255] -> [0.0, 1.0] */
f1b26c
 static inline float GrNormalizeByteToFloat(uint8_t value) {
517bf9
     static const float ONE_OVER_255 = 1.f / 255.f;
517bf9
     return value * ONE_OVER_255;
517bf9
 }
517bf9
 
517bf9
 /** Used to pick vertex attribute types. */