From kde-devel Wed Jul 21 15:55:01 2010 From: Martin =?iso-8859-15?q?Gr=E4=DFlin?= Date: Wed, 21 Jul 2010 15:55:01 +0000 To: kde-devel Subject: Re: Qt XRenderComposite question Message-Id: <201007211755.09327.kde () martin-graesslin ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=127972779605400 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1102829406==" --===============1102829406== Content-Type: multipart/signed; boundary="nextPart1400676.tOTDM6ft5j"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1400676.tOTDM6ft5j Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Wednesday 21 July 2010 09:44:32 Twister Rodriguez wrote: > Hello, >=20 > I hope you could help with some code, which uses XRender XComposite and Q= t. > The reason I'm asking, is because, I've seen similar code in the KDE > source, however, I can't make it work. May be you could help. I cannot be really a help, because I hardly know anything about XRender. Bu= t=20 at least I can point you to some compositing source code. As you might know= =20 KWin supports XRender compositing, so you can find some code in=20 trunk/KDE/kdebase/workspace/kwin. Most important: * scene_xrender.[h|cpp] - here the most important method should be=20 SceneXrender::Window::performPaint * scene.[h|cpp] - provides some documentation * lib/kwinxrenderutils.[h|cpp] - provide some functions which are used by=20 scene_xrender=20 * composite.cpp - some basic compositing related stuff I would also recommend you to have a look on scene_opengl.[h|cpp] and think= =20 about using OpenGL instead of XRender. In most cases you will achieve bette= r=20 performance. It might also be easier to just render the window to an OpenGL= =20 =46ramebuffer object and save that to disk. This could be done by writing a= KWin=20 compositing effect - we are interested in that (for interaction with=20 KSnapshot). =46or more questions I guess the kwin mailinglist might be a better place, Regards Martin Gr=E4=DFlin --nextPart1400676.tOTDM6ft5j Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iJwEAAECAAYFAkxHGFUACgkQ/umpWjNT6CL9WgQAp7Q8CFrg1twqxDdpYfXXg1md qNU1n2XwsolLTPipvMsNtswcRtr9to4LBKJA21H0mgone5nMDO7ZokBTTenPeOOz qxsF34i9F/8i9jTTjFFyIqfmOUHFYSAG/3BbVQ8Qqr1WDyBgPBmNg0ZTMEEHxwr0 F95S5f1quzcgp8skOwc= =QvM6 -----END PGP SIGNATURE----- --nextPart1400676.tOTDM6ft5j-- --===============1102829406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1102829406==--