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