[Spice-devel] [PATCH spice-common] Document REGION_TEST_* bitmasks

Frediano Ziglio fziglio at redhat.com
Fri Feb 3 10:02:09 UTC 2017


> 
> ---
> I'm not sure whether these values are self-explanatory to everyone else, but
> I
> found these comments somewhat helpful when studying the Drawable tree code
> recently.
> 
>  common/region.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/common/region.h b/common/region.h
> index 4619406..9f92b32 100644
> --- a/common/region.h
> +++ b/common/region.h
> @@ -29,8 +29,11 @@ SPICE_BEGIN_DECLS
>  
>  typedef pixman_region32_t QRegion;
>  
> +/* the left region is not contained entirely within the right region */
>  #define REGION_TEST_LEFT_EXCLUSIVE (1 << 0)
> +/* the right region is not contained entirely within the left region */
>  #define REGION_TEST_RIGHT_EXCLUSIVE (1 << 1)
> +/* the regions overlap */
>  #define REGION_TEST_SHARED (1 << 2)
>  #define REGION_TEST_ALL \
>      (REGION_TEST_LEFT_EXCLUSIVE | REGION_TEST_RIGHT_EXCLUSIVE |
>      REGION_TEST_SHARED)

Acked-by: Frediano Ziglio <fziglio at redhat.com>

Frediano


More information about the Spice-devel mailing list