mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
render/texture: introduce wlr_texture_invalidate
This commit is contained in:
parent
5c699f09cb
commit
a3a85a9aed
3 changed files with 30 additions and 0 deletions
21
include/render/wlr_texture.h
Normal file
21
include/render/wlr_texture.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef RENDER_WLR_TEXTURE_H
|
||||
#define RENDER_WLR_TEXTURE_H
|
||||
|
||||
#include <wlr/render/wlr_texture.h>
|
||||
|
||||
/**
|
||||
* Refresh the texture contents from the underlying buffer storage.
|
||||
*
|
||||
* If the texture refers to external memory (i.e. memory owned by another
|
||||
* process), the renderer may need a wlr_texture_invalidate call to make
|
||||
* external changes visible to the texture.
|
||||
*
|
||||
* This operation must not perform any copy.
|
||||
*
|
||||
* If the texture cannot be invalidated, false is returned. If the texture
|
||||
* doesn't need to be invalidated for external changes to be visible, true is
|
||||
* immediately returned.
|
||||
*/
|
||||
bool wlr_texture_invalidate(struct wlr_texture *texture);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue