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