Changeset 50315 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 4, 2014 7:58:15 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92031
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.