VirtualBox

Changeset 46864 in vbox for trunk


Ignore:
Timestamp:
Jun 28, 2013 1:08:55 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: UI frame-buffer interface: Extended release (gui flow) logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r46716 r46864  
    2222#else  /* !VBOX_WITH_PRECOMPILED_HEADERS */
    2323
    24 /* Local includes */
     24/* GUI includes: */
    2525# include "UIMachineView.h"
    2626# include "UIFrameBuffer.h"
     
    2828# include "VBoxGlobal.h"
    2929
     30/* Other VBox includes: */
    3031# include <VBox/VBoxVideo3D.h>
    3132
     
    168169                                          BOOL *pbFinished)
    169170{
     171    LogRelFlow(("UIFrameBuffer::RequestResize: "
     172                "Screen=%lu, Format=%lu, "
     173                "BitsPerPixel=%lu, BytesPerLine=%lu, "
     174                "Size=%lux%lu\n",
     175                (unsigned long)uScreenId, (unsigned long)uPixelFormat,
     176                (unsigned long)uBitsPerPixel, (unsigned long)uBytesPerLine,
     177                (unsigned long)uWidth, (unsigned long)uHeight));
     178
    170179    /* Make sure frame-buffer is not yet scheduled for removal: */
    171180    if (m_fIsScheduledToDelete)
     
    173182
    174183    /* Currently screen ID is not used: */
    175     NOREF(uScreenId);
     184    Q_UNUSED(uScreenId);
    176185
    177186    /* Mark request as not-yet-finished: */
     
    200209STDMETHODIMP UIFrameBuffer::NotifyUpdate(ULONG uX, ULONG uY, ULONG uWidth, ULONG uHeight)
    201210{
     211    LogRelFlow(("UIFrameBuffer::NotifyUpdate: Origin=%lux%lu, Size=%lux%lu\n",
     212                (unsigned long)uX, (unsigned long)uY,
     213                (unsigned long)uWidth, (unsigned long)uHeight));
     214
    202215    /* Make sure frame-buffer is not yet scheduled for removal: */
    203216    if (m_fIsScheduledToDelete)
     
    221234STDMETHODIMP UIFrameBuffer::VideoModeSupported(ULONG uWidth, ULONG uHeight, ULONG uBPP, BOOL *pbSupported)
    222235{
    223     NOREF(uBPP);
    224     LogFlowThisFunc(("width=%lu, height=%lu, BPP=%lu\n",
    225                     (unsigned long)uWidth, (unsigned long)uHeight, (unsigned long)uBPP));
     236    LogRelFlow(("UIFrameBuffer::VideoModeSupported: Mode: BPP=%lu, Size=%lux%lu\n",
     237                (unsigned long)uBPP, (unsigned long)uWidth, (unsigned long)uHeight));
     238
     239    /* Make sure frame-buffer is not yet scheduled for removal: */
     240    if (m_fIsScheduledToDelete)
     241        return E_FAIL;
    226242
    227243    if (!pbSupported)
     
    229245    *pbSupported = TRUE;
    230246
    231     lock(); /* See comment in setView(). */
    232     QSize screen;
    233     if (m_pMachineView)
    234         screen = m_pMachineView->maxGuestSize();
     247    /* Currently BPP is not used: */
     248    Q_UNUSED(uBPP);
     249
     250    /* See comment in setView(): */
     251    lock();
     252
     253    QSize screenSize;
     254    if (m_pMachineView)
     255        screenSize = m_pMachineView->maxGuestSize();
     256
     257    /* Unlock thread finally: */
    235258    unlock();
    236     if (   (screen.width() != 0)
    237         && (uWidth > (ULONG)screen.width())
     259
     260    if (   (screenSize.width() != 0)
     261        && (uWidth > (ULONG)screenSize.width())
    238262        && (uWidth > (ULONG)width()))
    239263        *pbSupported = FALSE;
    240264
    241     if (   (screen.height() != 0)
    242         && (uHeight > (ULONG)screen.height())
     265    if (   (screenSize.height() != 0)
     266        && (uHeight > (ULONG)screenSize.height())
    243267        && (uHeight > (ULONG)height()))
    244268        *pbSupported = FALSE;
    245269
    246     LogFlowThisFunc(("screenW=%lu, screenH=%lu -> aSupported=%s\n",
    247                     screen.width(), screen.height(), *pbSupported ? "TRUE" : "FALSE"));
    248 
     270    LogRelFlow(("UIFrameBuffer::VideoModeSupported: Verdict: Supported=%s\n",
     271                *pbSupported ? "TRUE" : "FALSE"));
     272
     273    /* Confirm VideoModeSupported: */
    249274    return S_OK;
    250275}
     
    257282        return E_POINTER;
    258283
    259     NOREF(uCount);
    260     NOREF(puCountCopied);
     284    Q_UNUSED(uCount);
     285    Q_UNUSED(puCountCopied);
    261286
    262287    return S_OK;
     
    265290STDMETHODIMP UIFrameBuffer::SetVisibleRegion(BYTE *pRectangles, ULONG uCount)
    266291{
     292    LogRelFlow(("UIFrameBuffer::SetVisibleRegion: Rectangle count=%lu\n", (unsigned long)uCount));
     293
    267294    /* Make sure frame-buffer is not yet scheduled for removal: */
    268295    if (m_fIsScheduledToDelete)
     
    334361    AssertBreakpoint();
    335362}
    336 #endif
     363#endif /* VBOX_WITH_VIDEOHWACCEL */
    337364
    338365void UIFrameBuffer::setView(UIMachineView * pView)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette