diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-02-24 13:03:07 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-01 10:36:19 +0100 |
commit | 2b079485f6092051ebb7fec0e6210d6743926064 (patch) | |
tree | a4906a80ba23165c94bc7abaeca127ca84d9771a /src/gallium/state_trackers/egl/common/native_helper.h | |
parent | d1e4117355f1db6ff87c837df6212bf6168e98a0 (diff) |
st/egl: Add a helper to perform a copy swap on a resource surface
The copy swap can be used when we need to preserve the contents of
the back buffer or when there is no way to do native page-flipping.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/egl/common/native_helper.h')
-rw-r--r-- | src/gallium/state_trackers/egl/common/native_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl/common/native_helper.h b/src/gallium/state_trackers/egl/common/native_helper.h index 03995de19a..ad6827336a 100644 --- a/src/gallium/state_trackers/egl/common/native_helper.h +++ b/src/gallium/state_trackers/egl/common/native_helper.h @@ -74,3 +74,7 @@ boolean resource_surface_present(struct resource_surface *rsurf, enum native_attachment which, void *winsys_drawable_handle); + +boolean +resource_surface_copy_swap(struct resource_surface *rsurf, + struct native_display *ndpy); |