- Timestamp:
- Nov 23, 2009 10:34:08 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r24646 r24861 1081 1081 1082 1082 void vhwaSaveExec(struct SSMHANDLE * pSSM); 1083 int vhwaLoadExec(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1083 static void vhwaSaveExecVoid(struct SSMHANDLE * pSSM); 1084 static int vhwaLoadExec(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1084 1085 1085 1086 int vhwaSurfaceCanCreate(struct _VBOXVHWACMD_SURF_CANCREATE *pCmd); … … 1157 1158 return bForce; 1158 1159 } 1160 1161 VHWACommandList &onResizeCmdList() { return mOnResizeCmdList; } 1159 1162 protected: 1160 1163 … … 1202 1205 1203 1206 int vhwaSaveSurface(struct SSMHANDLE * pSSM, VBoxVHWASurfaceBase *pSurf, uint32_t surfCaps); 1204 int vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t cBackBuffers, uint32_t u32Version);1207 static int vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t cBackBuffers, uint32_t u32Version); 1205 1208 int vhwaSaveOverlayData(struct SSMHANDLE * pSSM, VBoxVHWASurfaceBase *pSurf, bool bVisible); 1206 int vhwaLoadOverlayData(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1207 int vhwaLoadVHWAEnable(VHWACommandList * pCmdList); 1209 static int vhwaLoadOverlayData(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); 1210 static int vhwaLoadVHWAEnable(VHWACommandList * pCmdList); 1211 1208 1212 void vhwaDoSurfaceOverlayUpdate(VBoxVHWASurfaceBase *pDstSurf, VBoxVHWASurfaceBase *pSrcSurf, struct _VBOXVHWACMD_SURF_OVERLAY_UPDATE *pCmd); 1209 1213 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r24668 r24861 3811 3811 Assert(uPass == SSM_PASS_FINAL); NOREF(uPass); 3812 3812 VBoxGLWidget * pw = (VBoxGLWidget*)pvUser; 3813 return pw->vhwaLoadExec(NULL, pSSM, u32Version);3813 return VBoxGLWidget::vhwaLoadExec(&pw->onResizeCmdList(), pSSM, u32Version); 3814 3814 } 3815 3815 … … 4123 4123 4124 4124 return rc; 4125 } 4126 4127 void VBoxGLWidget::vhwaSaveExecVoid(struct SSMHANDLE * pSSM) 4128 { 4129 VBOXQGL_SAVE_START(pSSM); 4130 int rc = SSMR3PutU32(pSSM, 0); AssertRC(rc); /* 0 primaries */ 4131 rc = SSMR3PutU32(pSSM, 0); AssertRC(rc); /* 0 overlays */ 4132 VBOXQGL_SAVE_STOP(pSSM); 4125 4133 } 4126 4134 … … 4239 4247 int rc; 4240 4248 uint32_t u32; 4241 4242 if(pCmdList == NULL)4243 {4244 /* use our own list */4245 pCmdList = &mOnResizeCmdList;4246 }4247 4249 4248 4250 rc = SSMR3GetU32(pSSM, &u32); AssertRC(rc); … … 5576 5578 // rc = SSMR3GetBool(pSSM, &bTmp /*&mOverlayVisible*/); AssertRC(rc); 5577 5579 // if(RT_SUCCESS(rc)) 5578 return mpOverlayWidget->vhwaLoadExec(&mOnResizeCmdList, pSSM, u32Version);5580 return VBoxGLWidget::vhwaLoadExec(&mOnResizeCmdList, pSSM, u32Version); 5579 5581 // return rc; 5580 5582 } … … 5585 5587 // rc = SSMR3PutBool(pSSM, mOverlayVisible); AssertRC(rc); 5586 5588 // 5587 mpOverlayWidget->vhwaSaveExec(pSSM); 5589 if(mpOverlayWidget) 5590 mpOverlayWidget->vhwaSaveExec(pSSM); 5591 else 5592 VBoxGLWidget::vhwaSaveExecVoid(pSSM); 5588 5593 } 5589 5594
Note:
See TracChangeset
for help on using the changeset viewer.