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