VirtualBox

Ignore:
Timestamp:
Sep 8, 2009 12:57:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52067
Message:

video hw accel: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h

    r22834 r22836  
    965965};
    966966
     967#define VBOXVHWACMDPIPEC_NEWEVENT      0x00000001
     968#define VBOXVHWACMDPIPEC_COMPLETEEVENT 0x00000002
    967969class VBoxVHWACommandElementProcessor
    968970{
     
    970972    VBoxVHWACommandElementProcessor(class VBoxConsoleView *aView);
    971973    ~VBoxVHWACommandElementProcessor();
    972     void postCmd(VBOXVHWA_PIPECMD_TYPE aType, void * pvData);
     974    void postCmd(VBOXVHWA_PIPECMD_TYPE aType, void * pvData, uint32_t flags);
     975    void completeCurrentEvent();
    973976    class VBoxVHWACommandElement * detachCmdList(class VBoxVHWACommandElement * pFirst2Free, VBoxVHWACommandElement * pLast2Free);
    974977
     
    11851188                             ULONG aW, ULONG aH);
    11861189
     1190    /**
     1191     * to be called on RequestResize framebuffer call
     1192     * @return true if the request was processed & should not be forwarded to the framebuffer
     1193     * false - otherwise */
     1194    bool onRequestResize (ULONG aScreenId, ULONG aPixelFormat,
     1195                              BYTE *aVRAM, ULONG aBitsPerPixel, ULONG aBytesPerLine,
     1196                              ULONG aWidth, ULONG aHeight,
     1197                              BOOL *aFinished)
     1198    {
     1199        mCmdPipe.completeCurrentEvent();
     1200        return false;
     1201    }
     1202
    11871203    VBOXFBOVERLAY_RESUT onPaintEvent (const QPaintEvent *pe, QRect *pRect);
    11881204    void onResizeEvent (const class VBoxResizeEvent *re);
     
    13081324    }
    13091325
     1326    STDMETHOD(RequestResize) (ULONG aScreenId, ULONG aPixelFormat,
     1327                              BYTE *aVRAM, ULONG aBitsPerPixel, ULONG aBytesPerLine,
     1328                              ULONG aWidth, ULONG aHeight,
     1329                              BOOL *aFinished)
     1330   {
     1331        if(mOverlay.onRequestResize (aScreenId, aPixelFormat,
     1332                aVRAM, aBitsPerPixel, aBytesPerLine,
     1333                aWidth, aHeight,
     1334                aFinished))
     1335        {
     1336            return S_OK;
     1337        }
     1338        return T::RequestResize (aScreenId, aPixelFormat,
     1339                aVRAM, aBitsPerPixel, aBytesPerLine,
     1340                aWidth, aHeight,
     1341                aFinished);
     1342   }
     1343
    13101344    STDMETHOD(NotifyUpdate) (ULONG aX, ULONG aY,
    13111345                             ULONG aW, ULONG aH)
Note: See TracChangeset for help on using the changeset viewer.

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