Changeset 50315 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 4, 2014 7:58:15 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92031
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r50314 r50315 168 168 #endif 169 169 #ifdef VBOX_WITH_CRHGSMI 170 int handleCrCmdNotifyCmds();170 int handleCrCmdNotifyCmds(); 171 171 void handleCrHgsmiCommandProcess(PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd); 172 172 void handleCrHgsmiControlProcess(PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCtl); … … 179 179 void handleCrAsyncCmdCompletion(int32_t result, uint32_t u32Function, PVBOXHGCMSVCPARM pParam); 180 180 void handleCrVRecScreenshotPerform(uint32_t uScreen, 181 uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel,182 uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight,183 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp);181 uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel, 182 uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight, 183 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp); 184 184 bool handleCrVRecScreenshotBegin(uint32_t uScreen, uint64_t u64TimeStamp); 185 185 void handleCrVRecScreenshotEnd(uint32_t uScreen, uint64_t u64TimeStamp); 186 void 186 void handleVRecCompletion(int32_t result, uint32_t u32Function, PVBOXHGCMSVCPARM pParam, void *pvContext); 187 187 #endif 188 188 … … 286 286 #if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL) 287 287 static DECLCALLBACK(void) displayCrVRecScreenshotPerform(void *pvCtx, uint32_t uScreen, 288 uint32_t x, uint32_t y, uint32_t uBitsPerPixel, 289 uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight, 290 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp); 288 uint32_t x, uint32_t y, 289 uint32_t uBitsPerPixel, uint32_t uBytesPerLine, 290 uint32_t uGuestWidth, uint32_t uGuestHeight, 291 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp); 291 292 static DECLCALLBACK(bool) displayCrVRecScreenshotBegin(void *pvCtx, uint32_t uScreen, uint64_t u64TimeStamp); 292 293 static DECLCALLBACK(void) displayCrVRecScreenshotEnd(void *pvCtx, uint32_t uScreen, uint64_t u64TimeStamp); -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r50314 r50315 3678 3678 { 3679 3679 do { 3680 # if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL)3680 # if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL) 3681 3681 BOOL is3denabled; 3682 3682 pDisplay->mParent->machine()->COMGETTER(Accelerate3DEnabled)(&is3denabled); … … 3718 3718 } 3719 3719 } 3720 #endif 3720 # endif /* VBOX_WITH_HGCM && VBOX_WITH_CROGL */ 3721 3721 3722 uint64_t u64Now = RTTimeProgramMilliTS(); 3722 3723 for (uScreenId = 0; uScreenId < pDisplay->mcMonitors; uScreenId++) … … 3755 3756 } while (0); 3756 3757 } 3757 #endif 3758 #endif /* VBOX_WITH_VPX */ 3758 3759 3759 3760 #ifdef DEBUG_sunlover … … 4209 4210 bool Display::handleCrVRecScreenshotBegin(uint32_t uScreen, uint64_t u64TimeStamp) 4210 4211 { 4212 # if VBOX_WITH_VPX 4211 4213 return VideoRecIsReady(mpVideoRecCtx, uScreen, u64TimeStamp); 4214 # else 4215 return false; 4216 # endif 4212 4217 } 4213 4218 … … 4217 4222 4218 4223 void Display::handleCrVRecScreenshotPerform(uint32_t uScreen, 4219 uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel, 4220 uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight, 4221 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp) 4224 uint32_t x, uint32_t y, uint32_t uPixelFormat, 4225 uint32_t uBitsPerPixel, uint32_t uBytesPerLine, 4226 uint32_t uGuestWidth, uint32_t uGuestHeight, 4227 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp) 4222 4228 { 4223 4229 Assert(mfCrOglVideoRecState == CRVREC_STATE_SUBMITTED); 4230 # if VBOX_WITH_VPX 4224 4231 int rc = VideoRecCopyToIntBuf(mpVideoRecCtx, uScreen, x, y, 4225 uPixelFormat, 4226 uBitsPerPixel, uBytesPerLine, 4227 uGuestWidth, uGuestHeight, 4228 pu8BufferAddress, u64TimeStamp); 4229 Assert(rc == VINF_SUCCESS/* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/); 4232 uPixelFormat, 4233 uBitsPerPixel, uBytesPerLine, 4234 uGuestWidth, uGuestHeight, 4235 pu8BufferAddress, u64TimeStamp); 4236 Assert(rc == VINF_SUCCESS /* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/); 4237 # endif 4230 4238 } 4231 4239 … … 4237 4245 4238 4246 DECLCALLBACK(void) Display::displayCrVRecScreenshotPerform(void *pvCtx, uint32_t uScreen, 4239 uint32_t x, uint32_t y, uint32_t uBitsPerPixel, 4240 uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight, 4241 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp) 4247 uint32_t x, uint32_t y, 4248 uint32_t uBitsPerPixel, uint32_t uBytesPerLine, 4249 uint32_t uGuestWidth, uint32_t uGuestHeight, 4250 uint8_t *pu8BufferAddress, uint64_t u64TimeStamp) 4242 4251 { 4243 4252 Display *pDisplay = (Display *)pvCtx; 4244 4253 pDisplay->handleCrVRecScreenshotPerform(uScreen, 4245 x, y, FramebufferPixelFormat_FOURCC_RGB, uBitsPerPixel,4246 uBytesPerLine, uGuestWidth, uGuestHeight,4247 pu8BufferAddress, u64TimeStamp);4254 x, y, FramebufferPixelFormat_FOURCC_RGB, uBitsPerPixel, 4255 uBytesPerLine, uGuestWidth, uGuestHeight, 4256 pu8BufferAddress, u64TimeStamp); 4248 4257 } 4249 4258
Note:
See TracChangeset
for help on using the changeset viewer.