[cairo] RFC: Shadow API v2

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 30 01:34:59 PDT 2014


On Thu, Oct 30, 2014 at 07:45:01AM +0000, Chris Wilson wrote:
> On Wed, Oct 29, 2014 at 04:54:33PM -0700, Bryce Harrington wrote:
> > /*
> >  * Effect properties
> >  */
> > typedef enum _cairo_effect_type {
> >     CAIRO_SHADOW_NONE = 0,
> >     CAIRO_SHADOW_DROP,
> >     CAIRO_SHADOW_INSET
> > } cairo_effect_type_t;
>
> So cairo_effect_type should be CAIRO_EFFECT_TYPE_PATH,
> CAIRO_EFFECT_TYPE_PEN, etc.

The other twist would be to have,

type = CAIRO_EFFECT_TYPE_PATH << 24 | CAIRO_PATH_EFFECT_DROP_SHADOW; etc
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list