Add a request to report a region of damage to a drawable.

This bumps the protocol (and package) version to 1.1.
This commit is contained in:
Eric Anholt 2007-01-05 17:52:49 -08:00
parent 03e7a652b1
commit df33455a45
4 changed files with 23 additions and 3 deletions

View file

@ -24,7 +24,7 @@ dnl
dnl Process this file with autoconf to create configure.
AC_PREREQ([2.57])
AC_INIT([DamageProto], [1.0.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
AC_INIT([DamageProto], [1.1.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE

View file

@ -115,6 +115,16 @@ typedef struct {
#define sz_xDamageSubtractReq 16
typedef struct {
CARD8 reqType;
CARD8 damageReqType;
CARD16 length B16;
Drawable drawable B32;
Region region B32;
} xDamagePostReq;
#define sz_xDamagePostReq 12
/* Events */
#define DamageNotifyMore 0x80

View file

@ -27,7 +27,7 @@
#define DAMAGE_NAME "DAMAGE"
#define DAMAGE_MAJOR 1
#define DAMAGE_MINOR 0
#define DAMAGE_MINOR 1
/************* Version 1 ****************/
@ -42,8 +42,9 @@
#define X_DamageCreate 1
#define X_DamageDestroy 2
#define X_DamageSubtract 3
#define X_DamagePost 4
#define XDamageNumberRequests (X_DamageSubtract + 1)
#define XDamageNumberRequests (X_DamagePost + 1)
/* Events */
#define XDamageNotify 0

View file

@ -188,3 +188,12 @@ DamageSubtract
1) parts = damage INTERSECT repair
2) damage = damage - parts
3) Generate DamageNotify for remaining damage areas
DamagePost
drawable: Drawable
region: Region
Reports damage of the region within the given drawable. This may be
used by direct rendering clients to report damage that the server would
otherwise be unaware of.