xserver-multidpi/Xext
Adam Jackson 4f8a72034c res: Simplify QueryClientPixmapBytes
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 might be slightly slower since we're calling the size func once for
every resource.  On the other hand, it might be slightly faster since we
only walk the resource table once instead of 3-5 times.  Probably a
wash, and not really a performance path in any case.

Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-06-21 11:11:44 -04:00
..
bigreq.c Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
dpms.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
dpmsproc.h Xext: _X_EXPORT DPMSSet and DPMSSupported 2014-01-12 10:14:49 -08:00
dpmsstubs.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
geext.c dix: Remove pointless client-state callbacks 2016-05-11 11:21:08 -04:00
geext.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
geint.h xge: Hide some implementation details 2015-07-08 16:40:58 -04:00
hashtable.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
hashtable.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Makefile.am vidmode: move to a separate library of its own 2016-02-29 16:29:01 -05:00
panoramiX.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
panoramiX.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
panoramiXh.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiXprocs.c dix: Squash some new gcc6 warnings 2016-04-29 11:19:58 -04:00
panoramiXsrv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
panoramiXSwap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
saver.c dix: Squash some new gcc6 warnings 2016-04-29 11:19:58 -04:00
security.c security: Fix reversed comment 2016-03-14 11:49:13 -04:00
securitysrv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shape.c dix: Push UpdateCurrentTimeIf down out of the main loop 2016-05-04 10:58:01 -04:00
shm.c dix: Use OsSignal() not signal() 2016-06-08 11:36:31 -04:00
shmint.h xext: Fix shmint.h to not use headers outside of sdk_HEADERS 2013-11-14 10:22:15 +09:00
sleepuntil.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
sleepuntil.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
sync.c sync: Don't allow creating a system counter before sync is initialized 2015-12-08 18:22:54 -05:00
syncsdk.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
syncsrv.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
vidmode.c Fix the typo from the previous patch, d'oh 2016-03-14 11:20:39 -04:00
xace.c xace: Remove the audit hooks and tune dispatch 2016-06-10 13:26:19 -04:00
xace.h xace: Remove the audit hooks and tune dispatch 2016-06-10 13:26:19 -04:00
xacestr.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xcmisc.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xf86bigfont.c dix: Use OsSignal() not signal() 2016-06-08 11:36:31 -04:00
xf86bigfontsrv.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
xres.c res: Simplify QueryClientPixmapBytes 2016-06-21 11:11:44 -04:00
xselinux_ext.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xselinux_hooks.c Xext/xselinux: Use NotifyFd interface 2015-12-01 13:55:56 -05:00
xselinux_label.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xselinux.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinuxint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xtest.c Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
xvdisp.c Xv: unvalidated lengths in XVideo extension swapped procs [CVE-2014-8099] 2014-12-08 18:09:48 -08:00
xvdisp.h Fix swapped Xv dispatch under Xinerama. 2007-12-02 14:15:36 -05:00
xvdix.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xvmain.c xv: fix double free in AddResource failure case 2016-03-02 10:03:29 -05:00
xvmc.c xvmc: Fix unchecked AddResource 2016-03-08 10:19:33 -05:00
xvmcext.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00