gfx/cairo/pixman-component-alpha.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial