Re: [patch] gl: when using a surface as source/mask in drawing operation on GL surface target, we can avoid map_to_image()
Chris Wilson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <1333119661_157809@CP5-2952> |
On Fri, 30 Mar 2012 14:55:17 +0000, "Henry (Yu) Song - SISA" <[email protected]> wrote: > > commit 99d01460c93ae83c1eea5a221b34d7a990e60528 > Author: Henry (Yu) Song <[email protected]> > Date: Fri Mar 30 07:49:54 2012 -0700 > > gl: when using a surface as a source or mask, there is no need to download > newly created gl surface to an image. glReadPixels() can be slow. We > can avoid that. I intended for the backends to handle this condition (and also for when it knew the destination to be clear) as it would be generally useful. In this case it is shorthand for cairo_surface_create_similar_image() in case it is advantageous for the driver to prepare a PBO. -Chris -- Chris Wilson, Intel Open Source Technology Centre -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo