mozilla-bmo1005535.patch
author Wolfgang Rosenauer <wr@rosenauer.org>
Sat, 14 Sep 2019 10:56:02 +0200
branchfirefox69
changeset 1109 972f68ac6b1a
parent 1097 840132a4a9b3
child 1119 4c5d44d40a03
permissions -rw-r--r--
Firefox 69.0 as released to Factory/Tumbleweed (including fixes for arch specific patches)

# HG changeset patch
# User Steve Singer <steve@ssinger.info>
# Date 1558451540 -7200
#      Tue May 21 17:12:20 2019 +0200
# Node ID 433beec63e6b5f409683af20a0c1ab137cc7bfad
# Parent  42c99b59a87b904063bad3193f10c51d068d2eac
Bug 1005535 - Get skia GPU building on big endian.

diff -r 42c99b59a87b -r 433beec63e6b gfx/skia/skia/include/private/GrColor.h
--- a/gfx/skia/skia/include/private/GrColor.h	Wed Jun 05 08:48:08 2019 +0200
+++ b/gfx/skia/skia/include/private/GrColor.h	Tue May 21 17:12:20 2019 +0200
@@ -63,7 +63,7 @@
  *  Since premultiplied means that alpha >= color, we construct a color with
  *  each component==255 and alpha == 0 to be "illegal"
  */
-#define GrColor_ILLEGAL     (~(0xFF << GrColor_SHIFT_A))
+#define GrColor_ILLEGAL     ((uint32_t)(~(0xFF << GrColor_SHIFT_A)))
 
 /** Normalizes and coverts an uint8_t to a float. [0, 255] -> [0.0, 1.0] */
 static inline float GrNormalizeByteToFloat(uint8_t value) {