<div>In this case it assumes that cairo_image_source_t::is_opaque_solid is never called.</div><div>Anyway, I've found a solution for my problem.</div><div><br></div><div>Regards,</div><div>Yannick</div><br><div class="gmail_quote">
On 16 April 2013 15:54, Chris Wilson <span dir="ltr"><<a href="mailto:chris@chris-wilson.co.uk" target="_blank">chris@chris-wilson.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Apr 16, <a href="tel:2013" value="+3522013">2013</a> at 03:28:40PM +0200, Yannick Poirier wrote:<br>
> I'm writting a cairo backend to use some hw acceleration. Basically I'm<br>
> overloaded cairo_image_surface_t and cairo_image_source_t.<br>
> I'm facing a crash in one of my functions and this is because of a cast<br>
> from cairo_image_surface_t to cairo_image_source_t.<br>
<br>
</div>The layout of cairo_image_surface_t and cairo_image_source_t should be<br>
identical for the common components so that we can indeed pass down<br>
cairo_image_surface_t into that function and treat it as a<br>
cairo_image_source_t i.e. the offset of pixman_image_t is identical in<br>
both structures.<br>
<span class="HOEnZb"><font color="#888888">-Chris<br>
<br>
--<br>
Chris Wilson, Intel Open Source Technology Centre<br>
</font></span></blockquote></div><br>