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