Re: Dangerous cast between cairo_image_surface_t and cairo_image_source_t

Yannick Poirier <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAJLBeVbEXSRZiYbO+u3Wy6wXtWLuoF4Zszoo6qcP1cxFyGM=zA@mail.gmail.com>
In this case it assumes that cairo_image_source_t::is_opaque_solid is never
called.
Anyway, I've found a solution for my problem.

Regards,
Yannick

On 16 April 2013 15:54, Chris Wilson <[email protected]> wrote:

> On Tue, Apr 16, 2013 at 03:28:40PM +0200, Yannick Poirier wrote:
> > I'm writting a cairo backend to use some hw acceleration. Basically I'm
> > overloaded cairo_image_surface_t and cairo_image_source_t.
> > I'm facing a crash in one of my functions and this is because of a cast
> > from cairo_image_surface_t to cairo_image_source_t.
>
> The layout of cairo_image_surface_t and cairo_image_source_t should be
> identical for the common components so that we can indeed pass down
> cairo_image_surface_t into that function and treat it as a
> cairo_image_source_t i.e. the offset of pixman_image_t is identical in
> both structures.
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
>

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.