mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-03 07:15:42 -04:00
Add buffer.damage request to the protocol
Thus remove the server-side used vfunc buffer::damage.
This commit is contained in:
parent
589e581f76
commit
0bf5285b44
2 changed files with 18 additions and 11 deletions
|
|
@ -110,9 +110,21 @@
|
||||||
|
|
||||||
<!-- A pixel buffer. Created using the drm, shm or similar objects.
|
<!-- A pixel buffer. Created using the drm, shm or similar objects.
|
||||||
It has a size, visual and contents, but not a location on the
|
It has a size, visual and contents, but not a location on the
|
||||||
screen -->
|
screen. -->
|
||||||
<interface name="wl_buffer" version="1">
|
<interface name="wl_buffer" version="1">
|
||||||
<!-- Abandon a buffer. This will invalidate the object id. -->
|
<!-- Notify the server that the specified area of the buffers
|
||||||
|
contents have changed. To describe a more complicated area
|
||||||
|
of damage, break down the region into rectangles and use this
|
||||||
|
request several times.
|
||||||
|
-->
|
||||||
|
<request name="damage">
|
||||||
|
<arg name="x" type="int"/>
|
||||||
|
<arg name="y" type="int"/>
|
||||||
|
<arg name="width" type="int"/>
|
||||||
|
<arg name="height" type="int"/>
|
||||||
|
</request>
|
||||||
|
|
||||||
|
<!-- Destroy a buffer. This will invalidate the object id. -->
|
||||||
<request name="destroy" type="destructor"/>
|
<request name="destroy" type="destructor"/>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
|
|
@ -349,12 +361,10 @@
|
||||||
active? -->
|
active? -->
|
||||||
<request name="map_fullscreen"/>
|
<request name="map_fullscreen"/>
|
||||||
|
|
||||||
<!-- Notify the server that the attached buffer's contents have
|
<!-- After attaching a new buffer, this request is used to
|
||||||
changed, and request a redraw. The arguments allow you to
|
describe the regions where the new buffer is different from
|
||||||
damage only a part of the surface, but the server may ignore
|
the previous buffer and needs to be repainted. Coordinates
|
||||||
it and redraw the entire contents of the surface. To
|
are relative to the new buffer. -->
|
||||||
describe a more complicated area of damage, use this request
|
|
||||||
several times. -->
|
|
||||||
<request name="damage">
|
<request name="damage">
|
||||||
<arg name="x" type="int"/>
|
<arg name="x" type="int"/>
|
||||||
<arg name="y" type="int"/>
|
<arg name="y" type="int"/>
|
||||||
|
|
|
||||||
|
|
@ -125,9 +125,6 @@ struct wl_buffer {
|
||||||
struct wl_visual *visual;
|
struct wl_visual *visual;
|
||||||
int32_t width, height;
|
int32_t width, height;
|
||||||
void (*attach)(struct wl_buffer *buffer, struct wl_surface *surface);
|
void (*attach)(struct wl_buffer *buffer, struct wl_surface *surface);
|
||||||
void (*damage)(struct wl_buffer *buffer,
|
|
||||||
struct wl_surface *surface,
|
|
||||||
int32_t x, int32_t y, int32_t width, int32_t height);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wl_listener {
|
struct wl_listener {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue