5bf1f5
# HG changeset patch
5bf1f5
# User Steve Singer <steve@ssinger.info>
5bf1f5
# Date 1558451540 -7200
5bf1f5
#      Tue May 21 17:12:20 2019 +0200
5bf1f5
# Node ID 433beec63e6b5f409683af20a0c1ab137cc7bfad
5bf1f5
# Parent  42c99b59a87b904063bad3193f10c51d068d2eac
5bf1f5
Bug 1005535 - Get skia GPU building on big endian.
5bf1f5
5bf1f5
diff -r 42c99b59a87b -r 433beec63e6b gfx/skia/skia/include/private/GrColor.h
5bf1f5
--- a/gfx/skia/skia/include/private/GrColor.h	Wed Jun 05 08:48:08 2019 +0200
5bf1f5
+++ b/gfx/skia/skia/include/private/GrColor.h	Tue May 21 17:12:20 2019 +0200
5bf1f5
@@ -63,7 +63,7 @@
5bf1f5
  *  Since premultiplied means that alpha >= color, we construct a color with
5bf1f5
  *  each component==255 and alpha == 0 to be "illegal"
5bf1f5
  */
5bf1f5
-#define GrColor_ILLEGAL     (~(0xFF << GrColor_SHIFT_A))
5bf1f5
+#define GrColor_ILLEGAL     ((uint32_t)(~(0xFF << GrColor_SHIFT_A)))
5bf1f5
 
5bf1f5
 /** Normalizes and coverts an uint8_t to a float. [0, 255] -> [0.0, 1.0] */
5bf1f5
 static inline float GrNormalizeByteToFloat(uint8_t value) {