summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86xvpriv.h
diff options
context:
space:
mode:
authorPauli Nieminen <ext-pauli.nieminen@nokia.com>2011-01-13 20:50:16 +0200
committerPauli Nieminen <ext-pauli.nieminen@nokia.com>2011-02-03 14:38:36 +0200
commitddf32df5cc2e73b833f6e414276d938fdc38869e (patch)
treed84fb0ec248a510d7b1944d27077fd4febcb450a /hw/xfree86/common/xf86xvpriv.h
parent5678a41f6bc0ef8965bd50a88c5ef01ba7eb8b24 (diff)
xf86/xv: Use PostValidateTree to do reput
ValidateTree calls first ClipNotify and later might call WindowExposures. To avoid useless double reput ClipNotify delays reput to WindowExposures or PostValidateTree. PostValidatTree checks all ports if there is clip changes. On clip changes reput is done to move or scale the overlay. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Ville Syrjälä <ville.syrjala@nokia.com>
Diffstat (limited to 'hw/xfree86/common/xf86xvpriv.h')
-rw-r--r--hw/xfree86/common/xf86xvpriv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86xvpriv.h b/hw/xfree86/common/xf86xvpriv.h
index 3f1106de7..2a459f1b4 100644
--- a/hw/xfree86/common/xf86xvpriv.h
+++ b/hw/xfree86/common/xf86xvpriv.h
@@ -40,6 +40,7 @@ typedef struct {
DestroyWindowProcPtr DestroyWindow;
ClipNotifyProcPtr ClipNotify;
WindowExposuresProcPtr WindowExposures;
+ PostValidateTreeProcPtr PostValidateTree;
void (*AdjustFrame)(int, int, int, int);
Bool (*EnterVT)(int, int);
void (*LeaveVT)(int, int);
@@ -73,6 +74,7 @@ typedef struct {
Bool FreeCompositeClip;
XvAdaptorRecPrivatePtr AdaptorRec;
XvStatus isOn;
+ Bool clipChanged;
int vid_x, vid_y, vid_w, vid_h;
int drw_x, drw_y, drw_w, drw_h;
DevUnion DevPriv;