Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / gfx / cairo / pixman-interp.patch
blob263df0b9d8cd734808addb51811e93f759cca498
1 diff --git a/gfx/cairo/libpixman/src/pixman-private.h b/gfx/cairo/libpixman/src/pixman-private.h
2 --- a/gfx/cairo/libpixman/src/pixman-private.h
3 +++ b/gfx/cairo/libpixman/src/pixman-private.h
4 @@ -1,17 +1,26 @@
5 #ifndef PIXMAN_PRIVATE_H
6 #define PIXMAN_PRIVATE_H
8 /*
9 * The defines which are shared between C and assembly code
12 -/* bilinear interpolation precision (must be < 8) */
13 +/* bilinear interpolation precision (must be <= 8) */
14 +#ifndef MOZILLA_VERSION
15 +#error "Need mozilla headers"
16 +#endif
17 +#ifdef MOZ_GFX_OPTIMIZE_MOBILE
18 +#define LOW_QUALITY_INTERPOLATION
19 +#define LOWER_QUALITY_INTERPOLATION
20 +#define BILINEAR_INTERPOLATION_BITS 4
21 +#else
22 #define BILINEAR_INTERPOLATION_BITS 7
23 +#endif
24 #define BILINEAR_INTERPOLATION_RANGE (1 << BILINEAR_INTERPOLATION_BITS)
27 * C specific part
30 #ifndef __ASSEMBLER__