diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-04 12:09:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-04 12:25:47 +0100 |
commit | ecb3c303f8f62f5232f3e49c8df4193ea478be13 (patch) | |
tree | b863a4ddf050130b85289085f14005ddddb2e162 /src/sna/sna.h | |
parent | ad774cf3a299b220f9f2a0bed52c8fa979959426 (diff) |
sna: Fix sna_pixmap_move_area_to_gpu() to return the sna_pixmap
Like it's sibling sna_pixmap_move_to_gpu(), it helps to know the private
sna_pixmap after the operation rather than just a boolean success/fail
result, and make it more robust in the process.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index c47a8ab2..e2d1ef84 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -486,7 +486,7 @@ sna_pixmap_undo_cow(struct sna *sna, struct sna_pixmap *priv, unsigned flags); #define __MOVE_FORCE 0x40 #define __MOVE_DRI 0x80 -bool +struct sna_pixmap * sna_pixmap_move_area_to_gpu(PixmapPtr pixmap, const BoxRec *box, unsigned int flags); struct sna_pixmap *sna_pixmap_move_to_gpu(PixmapPtr pixmap, unsigned flags); |