[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Direct access to window off-screen buffer
From: Troll Berserker <berserker.troll () yandex ! com>
Date: 2018-02-04 2:50:50
Message-ID: 289c8437-fa47-863f-4703-83e8c40a1e07 () yandex ! com
[Download RAW message or body]
Hi all,
Is is possible to directly (using MIT-SHM) access the off-screen storage of the \
redirected (using Composite extension) window? I've tried (using \
XCompositeNameWindowPixmap + XShmCreatePixmap) and it seems that the modifying the \
memory doesn't modify window's content, so I won't post the code here. Someone may \
guess that I don't see changes because my compositor doesn't get Damage event and \
doesn't update screen, but this is not the case. I've slightly modified xcompmgr and \
try to get the SHMed Pixmap and modify it shortly before it calls XRenderComposite.
I've thought a bit and I now I'm thinking that there is should be no surprise that \
XShmCreatePixmap doesn't work. It expects segment of already allocated memory, but \
the off-screen is already allocated somewhere else.
So, if I understand everything correctly and it is not possible to directly access \
the off-screen buffer of the window, the question: what is the fastest way to access \
its contents? Using XShmCreateImage+XShmGetImage? \
_______________________________________________ xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic