Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
ff33fcdb
Commit
ff33fcdb
authored
Feb 24, 2015
by
Martin Flöser
Browse files
[server] Provide wl_resource *resource() in BufferInterface
We need to be able to access the wl_resource* to bind it to a texture.
parent
b3b4adfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/server/buffer_interface.cpp
View file @
ff33fcdb
...
...
@@ -186,5 +186,10 @@ wl_shm_buffer *BufferInterface::shmBuffer()
return
d
->
shmBuffer
;
}
wl_resource
*
BufferInterface
::
resource
()
const
{
return
d
->
buffer
;
}
}
}
src/wayland/server/buffer_interface.h
View file @
ff33fcdb
...
...
@@ -46,6 +46,7 @@ public:
SurfaceInterface
*
surface
()
const
;
wl_shm_buffer
*
shmBuffer
();
wl_resource
*
resource
()
const
;
/**
* Creates a QImage for the shared memory buffer.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment