mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 579517 follow-up: Remove NSPR types that crept in
--HG-- extra : rebase_source : ad957c9e57c93a102253a3bf0526d83d7aa34603
This commit is contained in:
parent
a4c9e5b511
commit
baabcc734f
@ -97,7 +97,7 @@
|
|||||||
*
|
*
|
||||||
* equivalent to (((c)*(a))/255)
|
* equivalent to (((c)*(a))/255)
|
||||||
*/
|
*/
|
||||||
PRUint8 MOZ_ALWAYS_INLINE gfxPreMultiply(PRUint8 c, PRUint8 a) {
|
uint8_t MOZ_ALWAYS_INLINE gfxPreMultiply(uint8_t c, uint8_t a) {
|
||||||
return GFX_DIVIDE_BY_255((c)*(a));
|
return GFX_DIVIDE_BY_255((c)*(a));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,8 +105,8 @@ PRUint8 MOZ_ALWAYS_INLINE gfxPreMultiply(PRUint8 c, PRUint8 a) {
|
|||||||
* Pack the 4 8-bit channels (A,R,G,B)
|
* Pack the 4 8-bit channels (A,R,G,B)
|
||||||
* into a 32-bit packed NON-premultiplied pixel.
|
* into a 32-bit packed NON-premultiplied pixel.
|
||||||
*/
|
*/
|
||||||
PRUint32 MOZ_ALWAYS_INLINE
|
uint32_t MOZ_ALWAYS_INLINE
|
||||||
gfxPackedPixelNoPreMultiply(PRUint8 a, PRUint8 r, PRUint8 g, PRUint8 b) {
|
gfxPackedPixelNoPreMultiply(uint8_t a, uint8_t r, uint8_t g, uint8_t b) {
|
||||||
return (((a) << 24) | ((r) << 16) | ((g) << 8) | (b));
|
return (((a) << 24) | ((r) << 16) | ((g) << 8) | (b));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,8 +114,8 @@ gfxPackedPixelNoPreMultiply(PRUint8 a, PRUint8 r, PRUint8 g, PRUint8 b) {
|
|||||||
* Pack the 4 8-bit channels (A,R,G,B)
|
* Pack the 4 8-bit channels (A,R,G,B)
|
||||||
* into a 32-bit packed premultiplied pixel.
|
* into a 32-bit packed premultiplied pixel.
|
||||||
*/
|
*/
|
||||||
PRUint32 MOZ_ALWAYS_INLINE
|
uint32_t MOZ_ALWAYS_INLINE
|
||||||
gfxPackedPixel(PRUint8 a, PRUint8 r, PRUint8 g, PRUint8 b) {
|
gfxPackedPixel(uint8_t a, uint8_t r, uint8_t g, uint8_t b) {
|
||||||
if (a == 0x00)
|
if (a == 0x00)
|
||||||
return 0x00000000;
|
return 0x00000000;
|
||||||
else if (a == 0xFF) {
|
else if (a == 0xFF) {
|
||||||
|
Loading…
Reference in New Issue
Block a user