aboutsummaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-25 17:26:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-25 17:26:58 +0000
commit03319560f5c7c908b1c1d229b3ba53ed1ac6b692 (patch)
treecf1444183de31327fd6828b1e877b7e043c5f3c2 /server.h
parentapp synchronized updates: set is_armed=false when enabling (diff)
shm: scroll: keep shm pool around, and fix its size at max allowed
This lessens the burden on (primarily) the compositor, since we no longer tear down and re-create the SHM pool when scrolling. The SHM pool is setup once, and its size is fixed at the maximum allowed (512MB for now, 2GB would be possible). This also allows us to mmap() the memfd once. The exposed raw pointer is simply an offset from the memfd mmapping. Note that this means e.g. rouge rendering code will be able to write outside the buffer. Finally, only do this if the caller explicitly wants to enable scrolling. The memfd of other buffers are sized to the requested size.
Diffstat (limited to 'server.h')
0 files changed, 0 insertions, 0 deletions