Bug 1744524: part 2) Add `WindowContext::GetUserGestureStart` and remove `WindowConte...
[gecko.git] / gfx / cairo / pixman-component-alpha.patch
blobf6a6f4a95ff0766f5c4e80a9a1a4fb0294b4ef4e
1 commit d14b8c688f4cbe6c9289955d9ce7257c07869f9e
2 Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
3 Date: Wed May 6 10:19:04 2009 -0400
5 create getter for component alpha
7 diff --git a/gfx/cairo/libpixman/src/pixman-image.c b/gfx/cairo/libpixman/src/pixman-image.c
8 index e80c479..2c49f92 100644
9 --- a/gfx/cairo/libpixman/src/pixman-image.c
10 +++ b/gfx/cairo/libpixman/src/pixman-image.c
11 @@ -563,6 +563,11 @@ pixman_image_set_component_alpha (pixman_image_t *image,
12 image->common.component_alpha = component_alpha;
15 +PIXMAN_EXPORT pixman_bool_t
16 +pixman_image_get_component_alpha (pixman_image_t *image)
18 + return image->common.component_alpha;
21 PIXMAN_EXPORT void
22 pixman_image_set_accessors (pixman_image_t *image,
23 diff --git a/gfx/cairo/libpixman/src/pixman.h b/gfx/cairo/libpixman/src/pixman.h
24 index 49c39d5..522a866 100644
25 --- a/gfx/cairo/libpixman/src/pixman.h
26 +++ b/gfx/cairo/libpixman/src/pixman.h
27 @@ -767,6 +767,7 @@ void pixman_image_set_alpha_map (pixman_image_t
28 int16_t y);
29 void pixman_image_set_component_alpha (pixman_image_t *image,
30 pixman_bool_t component_alpha);
31 +pixman_bool_t pixman_image_get_component_alpha (pixman_image_t *image);
32 void pixman_image_set_accessors (pixman_image_t *image,
33 pixman_read_memory_func_t read_func,
34 pixman_write_memory_func_t write_func);