[PATCH xserver 1/3] res: Simplify QueryClientPixmapBytes

Keith Packard keithp at keithp.com
Wed Feb 3 11:34:33 CET 2016


Adam Jackson <ajax at redhat.com> writes:

> I suspect this code predates the common resource hooks for computing
> sizes.  It's ugly in any case since the Resource extension shouldn't
> need to know which extensions can take a reference on pixmaps.  Instead,
> let's just walk every resource for the client and sum up all the pixmap
> bytes that way.

This will miss pixmaps which are not referenced by the resource db,
including all redirect pixmaps.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20160203/7860eecc/attachment-0001.sig>


More information about the xorg-devel mailing list