diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-16 09:51:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-09-16 09:52:14 -0700 |
commit | bd8ecd9be1568b59258b6d2f78530ede345b7c7a (patch) | |
tree | b4329b5257e6bcf9e2bf8ec87b97ee000d6c79e1 /include | |
parent | 7f6fa4e449f5a7215bbf60ce8c874e163a7453a9 (diff) |
Add SyncSharedPixmap ScreenRec hook
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scrnintstr.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/scrnintstr.h b/include/scrnintstr.h index 5330714cb..52e8382bf 100644 --- a/include/scrnintstr.h +++ b/include/scrnintstr.h @@ -347,6 +347,24 @@ typedef Bool (*SharePixmapBackingProcPtr)(PixmapPtr, ScreenPtr, void **); typedef Bool (*SetSharedPixmapBackingProcPtr)(PixmapPtr, void *); +#define HAS_SYNC_SHARED_PIXMAP 1 +/* The SyncSharedPixmap hook has two purposes: + * + * 1. If the master driver has it, the slave driver can use it to + * synchronize the shared pixmap contents with the screen pixmap. + * 2. If the slave driver has it, the master driver can expect the slave + * driver to call the master screen's SyncSharedPixmap hook, so the master + * driver doesn't have to synchronize the shared pixmap contents itself, + * e.g. from the BlockHandler. + * + * A driver must only set the hook if it handles both cases correctly. + * + * The argument is the slave screen's pixmap_dirty_list entry, the hook is + * responsible for finding the corresponding entry in the master screen's + * pixmap_dirty_list. + */ +typedef void (*SyncSharedPixmapProcPtr)(PixmapDirtyUpdatePtr); + typedef Bool (*StartPixmapTrackingProcPtr)(PixmapPtr, PixmapPtr, int x, int y, int dst_x, int dst_y, @@ -616,6 +634,7 @@ typedef struct _Screen { StartPixmapTrackingProcPtr StartPixmapTracking; StopPixmapTrackingProcPtr StopPixmapTracking; + SyncSharedPixmapProcPtr SyncSharedPixmap; SharedPixmapNotifyDamageProcPtr SharedPixmapNotifyDamage; RequestSharedPixmapNotifyDamageProcPtr RequestSharedPixmapNotifyDamage; |