Changeset 38966 in vbox
- Timestamp:
- Oct 7, 2011 9:11:35 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r38838 r38966 168 168 } 169 169 170 Log FlowFunc(("%dx%d -> %dx%d\n", cx, cy, cxThumbnail, cyThumbnail));170 LogRelFlowFunc(("%dx%d -> %dx%d\n", cx, cy, cxThumbnail, cyThumbnail)); 171 171 172 172 cbThumbnail = cxThumbnail * 4 * cyThumbnail; … … 319 319 AssertRCBreak(rc); 320 320 321 Log FlowFunc(("[%d] type %d, size %d bytes\n", i, typeOfBlock, cbBlock));321 LogRelFlowFunc(("[%d] type %d, size %d bytes\n", i, typeOfBlock, cbBlock)); 322 322 323 323 /* Note: displaySSMSaveScreenshot writes size of a block = 8 and … … 414 414 HRESULT Display::init (Console *aParent) 415 415 { 416 Log FlowThisFunc(("aParent=%p\n", aParent));416 LogRelFlowFunc(("this=%p: aParent=%p\n", this, aParent)); 417 417 418 418 ComAssertRet(aParent, E_INVALIDARG); … … 490 490 void Display::uninit() 491 491 { 492 Log FlowThisFunc(("\n"));492 LogRelFlowFunc(("this=%p\n", this)); 493 493 494 494 /* Enclose the state transition Ready->InUninit->NotReady */ … … 580 580 ) 581 581 { 582 Log FlowFunc(("Machine is running.\n"));582 LogRelFlowFunc(("Machine is running.\n")); 583 583 584 584 mfMachineRunning = true; … … 616 616 if (!finished) 617 617 { 618 Log FlowFunc (("External framebuffer wants us to wait!\n"));618 LogRelFlowFunc (("External framebuffer wants us to wait!\n")); 619 619 return VINF_VGA_RESIZE_IN_PROGRESS; 620 620 } … … 733 733 void Display::handleResizeCompletedEMT (void) 734 734 { 735 Log FlowFunc(("\n"));735 LogRelFlowFunc(("\n")); 736 736 737 737 unsigned uScreenId; … … 806 806 pFBInfo->pFramebuffer->NotifyUpdate(0, 0, pFBInfo->w, pFBInfo->h); 807 807 } 808 Log Flow(("[%d]: default format %d\n", uScreenId, pFBInfo->fDefaultFormat));808 LogRelFlow(("[%d]: default format %d\n", uScreenId, pFBInfo->fDefaultFormat)); 809 809 810 810 #ifdef DEBUG_sunlover … … 821 821 822 822 /* Inform VRDP server about the change of display parameters. */ 823 Log FlowFunc (("Calling VRDP\n"));823 LogRelFlowFunc (("Calling VRDP\n")); 824 824 mParent->consoleVRDPServer()->SendResize(); 825 825 … … 989 989 AssertPtrReturnVoid(px2); 990 990 AssertPtrReturnVoid(py2); 991 Log FlowFunc(("\n"));991 LogRelFlowFunc(("\n")); 992 992 993 993 if (!mpDrv) … … 1298 1298 DISPLAYFBINFO *pFBInfo) 1299 1299 { 1300 Log FlowFunc(("HGSMI[%d]: %p\n", uScreenId, pFBInfo->pVBVAHostFlags));1300 LogRelFlowFunc(("HGSMI[%d]: %p\n", uScreenId, pFBInfo->pVBVAHostFlags)); 1301 1301 1302 1302 if (pFBInfo->pVBVAHostFlags) … … 1317 1317 ASMAtomicWriteU32(&pFBInfo->pVBVAHostFlags->u32SupportedOrders, fu32SupportedOrders); 1318 1318 1319 Log FlowFunc((" fu32HostEvents = 0x%08X, fu32SupportedOrders = 0x%08X\n", fu32HostEvents, fu32SupportedOrders));1319 LogRelFlowFunc((" fu32HostEvents = 0x%08X, fu32SupportedOrders = 0x%08X\n", fu32HostEvents, fu32SupportedOrders)); 1320 1320 } 1321 1321 } … … 1376 1376 * acceleration after a mode change. 1377 1377 */ 1378 Log FlowFunc (("mfVideoAccelEnabled = %d, fEnable = %d, pVbvaMemory = %p\n",1378 LogRelFlowFunc (("mfVideoAccelEnabled = %d, fEnable = %d, pVbvaMemory = %p\n", 1379 1379 mfVideoAccelEnabled, fEnable, pVbvaMemory)); 1380 1380 … … 1393 1393 Assert (!mfVideoAccelEnabled); 1394 1394 1395 Log FlowFunc (("Machine is not yet running.\n"));1395 LogRelFlowFunc (("Machine is not yet running.\n")); 1396 1396 1397 1397 if (fEnable) … … 1461 1461 } 1462 1462 1463 Log FlowFunc (("VideoAccelEnable: rc = %Rrc.\n", rc));1463 LogRelFlowFunc (("VideoAccelEnable: rc = %Rrc.\n", rc)); 1464 1464 1465 1465 return rc; … … 1470 1470 void Display::VideoAccelVRDP (bool fEnable) 1471 1471 { 1472 Log FlowFunc(("fEnable = %d\n", fEnable));1472 LogRelFlowFunc(("fEnable = %d\n", fEnable)); 1473 1473 1474 1474 vbvaLock(); … … 1725 1725 if (!dst) 1726 1726 { 1727 Log FlowFunc (("could not allocate %d bytes from heap!!!\n", cbRecord));1727 LogRelFlowFunc (("could not allocate %d bytes from heap!!!\n", cbRecord)); 1728 1728 mpVbvaMemory->off32Data = (mpVbvaMemory->off32Data + cbRecord) % VBVA_RING_BUFFER_SIZE; 1729 1729 return false; … … 1980 1980 ULONG *aWidth, ULONG *aHeight, ULONG *aBitsPerPixel) 1981 1981 { 1982 Log FlowFunc (("aScreenId = %d\n", aScreenId));1982 LogRelFlowFunc (("aScreenId = %d\n", aScreenId)); 1983 1983 1984 1984 AutoCaller autoCaller(this); … … 2025 2025 IFramebuffer *aFramebuffer) 2026 2026 { 2027 Log FlowFunc (("\n"));2027 LogRelFlowFunc (("\n")); 2028 2028 2029 2029 if (aFramebuffer != NULL) … … 2088 2088 IFramebuffer **aFramebuffer, LONG *aXOrigin, LONG *aYOrigin) 2089 2089 { 2090 Log FlowFunc (("aScreenId = %d\n", aScreenId));2090 LogRelFlowFunc (("aScreenId = %d\n", aScreenId)); 2091 2091 2092 2092 CheckComArgOutPointerValid(aFramebuffer); … … 2311 2311 { 2312 2312 /* Scale. */ 2313 Log FlowFunc(("SCALE: %dx%d -> %dx%d\n", cx, cy, width, height));2313 LogRelFlowFunc(("SCALE: %dx%d -> %dx%d\n", cx, cy, width, height)); 2314 2314 2315 2315 uint8_t *dst = address; … … 2350 2350 // within the Console lock to make it atomic). 2351 2351 2352 LogFlowFuncEnter(); 2353 LogFlowFunc (("address=%p, width=%d, height=%d\n", 2352 LogRelFlowFunc (("address=%p, width=%d, height=%d\n", 2354 2353 address, width, height)); 2355 2354 … … 2376 2375 HRESULT rc = S_OK; 2377 2376 2378 Log FlowFunc (("Sending SCREENSHOT request\n"));2377 LogRelFlowFunc (("Sending SCREENSHOT request\n")); 2379 2378 2380 2379 /* Leave lock because other thread (EMT) is called and it may initiate a resize … … 2397 2396 tr("Could not take a screenshot (%Rrc)"), vrc); 2398 2397 2399 LogFlowFunc (("rc=%08X\n", rc)); 2400 LogFlowFuncLeave(); 2398 LogRelFlowFunc (("rc=%08X\n", rc)); 2401 2399 return rc; 2402 2400 } … … 2405 2403 ComSafeArrayOut(BYTE, aScreenData)) 2406 2404 { 2407 LogFlowFuncEnter(); 2408 LogFlowFunc (("width=%d, height=%d\n", 2405 LogRelFlowFunc (("width=%d, height=%d\n", 2409 2406 width, height)); 2410 2407 … … 2431 2428 HRESULT rc = S_OK; 2432 2429 2433 Log FlowFunc (("Sending SCREENSHOT request\n"));2430 LogRelFlowFunc (("Sending SCREENSHOT request\n")); 2434 2431 2435 2432 /* Leave lock because other thread (EMT) is called and it may initiate a resize … … 2476 2473 RTMemFree(pu8Data); 2477 2474 2478 LogFlowFunc (("rc=%08X\n", rc)); 2479 LogFlowFuncLeave(); 2475 LogRelFlowFunc (("rc=%08X\n", rc)); 2480 2476 return rc; 2481 2477 } … … 2484 2480 ComSafeArrayOut(BYTE, aScreenData)) 2485 2481 { 2486 LogFlowFuncEnter(); 2487 LogFlowFunc (("width=%d, height=%d\n", 2482 LogRelFlowFunc (("width=%d, height=%d\n", 2488 2483 width, height)); 2489 2484 … … 2510 2505 HRESULT rc = S_OK; 2511 2506 2512 Log FlowFunc (("Sending SCREENSHOT request\n"));2507 LogRelFlowFunc (("Sending SCREENSHOT request\n")); 2513 2508 2514 2509 /* Leave lock because other thread (EMT) is called and it may initiate a resize … … 2551 2546 RTMemFree(pu8Data); 2552 2547 2553 LogFlowFunc (("rc=%08X\n", rc)); 2554 LogFlowFuncLeave(); 2548 LogRelFlowFunc (("rc=%08X\n", rc)); 2555 2549 return rc; 2556 2550 } … … 2665 2659 // within the Console lock to make it atomic). 2666 2660 2667 LogFlowFuncEnter(); 2668 LogFlowFunc (("address=%p, x=%d, y=%d, width=%d, height=%d\n", 2661 LogRelFlowFunc (("address=%p, x=%d, y=%d, width=%d, height=%d\n", 2669 2662 (void *)address, x, y, width, height)); 2670 2663 … … 2713 2706 // } 2714 2707 2715 LogFlowFunc (("rc=%08X\n", rc)); 2716 LogFlowFuncLeave(); 2708 LogRelFlowFunc (("rc=%08X\n", rc)); 2717 2709 return rc; 2718 2710 } … … 2792 2784 STDMETHODIMP Display::InvalidateAndUpdate() 2793 2785 { 2794 Log FlowFuncEnter();2786 LogRelFlowFunc(("\n")); 2795 2787 2796 2788 AutoCaller autoCaller(this); … … 2806 2798 HRESULT rc = S_OK; 2807 2799 2808 Log FlowFunc (("Sending DPYUPDATE request\n"));2800 LogRelFlowFunc (("Sending DPYUPDATE request\n")); 2809 2801 2810 2802 /* Have to leave the lock when calling EMT. */ … … 2820 2812 tr("Could not invalidate and update the screen (%Rrc)"), rcVBox); 2821 2813 2822 LogFlowFunc (("rc=%08X\n", rc)); 2823 LogFlowFuncLeave(); 2814 LogRelFlowFunc (("rc=%08X\n", rc)); 2824 2815 return rc; 2825 2816 } … … 2833 2824 STDMETHODIMP Display::ResizeCompleted(ULONG aScreenId) 2834 2825 { 2835 Log FlowFunc (("\n"));2826 LogRelFlowFunc (("\n")); 2836 2827 2837 2828 /// @todo (dmik) can we AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); here? … … 2879 2870 void Display::updateDisplayData(void) 2880 2871 { 2881 Log FlowFunc (("\n"));2872 LogRelFlowFunc (("\n")); 2882 2873 2883 2874 /* the driver might not have been constructed yet */ … … 2936 2927 mpDrv->IConnector.cy = 0; 2937 2928 } 2938 Log FlowFunc (("leave\n"));2929 LogRelFlowFunc (("leave\n")); 2939 2930 } 2940 2931 … … 2975 2966 unsigned uScreenId) 2976 2967 { 2977 Log FlowFunc (("uScreenId = %d\n", uScreenId));2968 LogRelFlowFunc (("uScreenId = %d\n", uScreenId)); 2978 2969 2979 2970 AssertReturn(that, VERR_INVALID_PARAMETER); … … 3033 3024 } 3034 3025 3035 Log FlowFunc (("leave\n"));3026 LogRelFlowFunc (("leave\n")); 3036 3027 return VINF_SUCCESS; 3037 3028 } … … 3047 3038 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3048 3039 3049 Log FlowFunc (("bpp %d, pvVRAM %p, cbLine %d, cx %d, cy %d\n",3040 LogRelFlowFunc (("bpp %d, pvVRAM %p, cbLine %d, cx %d, cy %d\n", 3050 3041 bpp, pvVRAM, cbLine, cx, cy)); 3051 3042 … … 3109 3100 if (u32ResizeStatus == ResizeStatus_UpdateDisplayData) 3110 3101 { 3111 Log FlowFunc (("ResizeStatus_UpdateDisplayData %d\n", uScreenId));3102 LogRelFlowFunc (("ResizeStatus_UpdateDisplayData %d\n", uScreenId)); 3112 3103 fNoUpdate = true; /* Always set it here, because pfnUpdateDisplayAll can cause a new resize. */ 3113 3104 /* The framebuffer was resized and display data need to be updated. */ … … 3126 3117 { 3127 3118 /* The framebuffer is being resized. Do not call the VGA device back. Immediately return. */ 3128 Log FlowFunc (("ResizeStatus_InProcess\n"));3119 LogRelFlowFunc (("ResizeStatus_InProcess\n")); 3129 3120 fNoUpdate = true; 3130 3121 continue; … … 3187 3178 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3188 3179 3189 Log FlowFunc (("\n"));3180 LogRelFlowFunc (("\n")); 3190 3181 3191 3182 /* Disable VBVA mode. */ … … 3202 3193 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3203 3194 3204 Log FlowFunc (("fEnabled=%d\n", fEnabled));3195 LogRelFlowFunc (("fEnabled=%d\n", fEnabled)); 3205 3196 3206 3197 NOREF(fEnabled); … … 3276 3267 pFBInfo->u32InformationSize = pDisplay->u32InformationSize; 3277 3268 3278 Log Flow(("VBOX_VIDEO_INFO_TYPE_DISPLAY: %d: at 0x%08X, size 0x%08X, info 0x%08X\n", pDisplay->u32Index, pDisplay->u32Offset, pDisplay->u32FramebufferSize, pDisplay->u32InformationSize));3269 LogRelFlow(("VBOX_VIDEO_INFO_TYPE_DISPLAY: %d: at 0x%08X, size 0x%08X, info 0x%08X\n", pDisplay->u32Index, pDisplay->u32Offset, pDisplay->u32FramebufferSize, pDisplay->u32InformationSize)); 3279 3270 } 3280 3271 else if (pHdr->u8Type == VBOX_VIDEO_INFO_TYPE_QUERY_CONF32) … … 3379 3370 pFBInfo->h = pScreen->u16Height; 3380 3371 3381 Log Flow(("VBOX_VIDEO_INFO_TYPE_SCREEN: (%p) %d: at %d,%d, linesize 0x%X, size %dx%d, bpp %d, flags 0x%02X\n",3372 LogRelFlow(("VBOX_VIDEO_INFO_TYPE_SCREEN: (%p) %d: at %d,%d, linesize 0x%X, size %dx%d, bpp %d, flags 0x%02X\n", 3382 3373 pHdr, uScreenId, pScreen->xOrigin, pScreen->yOrigin, pScreen->u32LineSize, pScreen->u16Width, pScreen->u16Height, pScreen->bitsPerPixel, pScreen->u8Flags)); 3383 3374 … … 3574 3565 DECLCALLBACK(int) Display::displayVBVAEnable(PPDMIDISPLAYCONNECTOR pInterface, unsigned uScreenId, PVBVAHOSTFLAGS pHostFlags) 3575 3566 { 3576 Log FlowFunc(("uScreenId %d\n", uScreenId));3567 LogRelFlowFunc(("uScreenId %d\n", uScreenId)); 3577 3568 3578 3569 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); … … 3589 3580 DECLCALLBACK(void) Display::displayVBVADisable(PPDMIDISPLAYCONNECTOR pInterface, unsigned uScreenId) 3590 3581 { 3591 Log FlowFunc(("uScreenId %d\n", uScreenId));3582 LogRelFlowFunc(("uScreenId %d\n", uScreenId)); 3592 3583 3593 3584 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); … … 3780 3771 DECLCALLBACK(int) Display::displayVBVAResize(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, const PVBVAINFOSCREEN pScreen, void *pvVRAM) 3781 3772 { 3782 Log FlowFunc(("pScreen %p, pvVRAM %p\n", pScreen, pvVRAM));3773 LogRelFlowFunc(("pScreen %p, pvVRAM %p\n", pScreen, pvVRAM)); 3783 3774 3784 3775 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); … … 3888 3879 { 3889 3880 /* VRDP server still need this notification. */ 3890 Log FlowFunc (("Calling VRDP\n"));3881 LogRelFlowFunc (("Calling VRDP\n")); 3891 3882 pThis->mParent->consoleVRDPServer()->SendResize(); 3892 3883 } … … 3951 3942 { 3952 3943 PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); 3953 Log FlowFunc (("iInstance=%d\n", pDrvIns->iInstance));3944 LogRelFlowFunc (("iInstance=%d\n", pDrvIns->iInstance)); 3954 3945 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 3955 3946 … … 3979 3970 { 3980 3971 PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); 3981 Log FlowFunc (("iInstance=%d\n", pDrvIns->iInstance));3972 LogRelFlowFunc (("iInstance=%d\n", pDrvIns->iInstance)); 3982 3973 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 3983 3974
Note:
See TracChangeset
for help on using the changeset viewer.