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