On Wed, Oct 05, 2011 at 12:28:04PM +0200, Eduard Hasenleithner wrote: > 2011/10/5 Peter Hutterer <peter.hutte...@who-t.net>: > > On Wed, Oct 05, 2011 at 10:51:39AM +0200, Eduard Hasenleithner wrote: > >> Hi, > >> > >> I'm just commenting on one point for now: > >> > >> 2011/10/5 Peter Hutterer <peter.hutte...@who-t.net>: > >> >> Just for the "record": No, I don't think we have a performance problem > >> >> when always setting all the pixmaps at once. It is just that I did not > >> >> figure out yet on how to blank the pixmaps in-server. > >> > > >> > blank? or free? > >> > >> When I mentioned "erase" I meant blank. Do you have an idea how to? > >> The stuff which looks so easy on the client side (XFillRectangle), is > >> a bit tough on the server side. > > > > haven't done this in the past but ProcClearToBackground seems to be quite > > simple to reproduce. not sure how well it works though :) > > I'm afraid, this function can only clear windows, not pixmaps :( > Or do I read the code wrongly?
yeah, sorry. my bad. anyway, looking at the server-side for XFillRectangle (ProcPolyFillRectangle) this should still be easy enough to reproduce provided you can get the drawable and the GC. after that, it's just xRectangle rect = {0, 0, width, height}; gc->ops->PolyFillRect(pixmap, gc, 1, &rect); though now that I write this: why do you need to blank the pixmap? if you let clients allocate the pixmaps completely then you don't need to touch them at all. Blanking is setting the pixmap to None, and that can be handled easily in the driver, right? Cheers, Peter ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel