summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/gdi
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-09-02 21:26:24 +0800
committerChia-I Wu <[email protected]>2011-09-08 11:16:11 +0800
commit08e1076fd2d3f6fb879dd2529e7d035d6a399da2 (patch)
treeaeec3914333754dc2745c4f747a3a6bc69f4a1e0 /src/gallium/state_trackers/egl/gdi
parentc0470bf77a038fd45441d1e55e6c89100996ff4b (diff)
st/egl: add native_present_control
Replace the parameters of native_surface::present by a struct, native_present_control. Using a struct allows us to add more control options without having to update each backend every time.
Diffstat (limited to 'src/gallium/state_trackers/egl/gdi')
-rw-r--r--src/gallium/state_trackers/egl/gdi/native_gdi.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/egl/gdi/native_gdi.c b/src/gallium/state_trackers/egl/gdi/native_gdi.c
index 6bf0d4e4668..d3fec719a21 100644
--- a/src/gallium/state_trackers/egl/gdi/native_gdi.c
+++ b/src/gallium/state_trackers/egl/gdi/native_gdi.c
@@ -161,16 +161,14 @@ gdi_surface_swap_buffers(struct native_surface *nsurf)
static boolean
gdi_surface_present(struct native_surface *nsurf,
- enum native_attachment natt,
- boolean preserve,
- uint swap_interval)
+ const native_present_control *ctrl)
{
boolean ret;
- if (preserve || swap_interval)
+ if (ctrl->preserve || ctrl->swap_interval)
return FALSE;
- switch (natt) {
+ switch (ctrl->natt) {
case NATIVE_ATTACHMENT_FRONT_LEFT:
ret = gdi_surface_flush_frontbuffer(nsurf);
break;