VirtualBox

Changeset 51670 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 19, 2014 3:12:30 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94439
Message:

Main,Frontends: use safearray for IFramebuffer::Notify3DEvent

Location:
trunk/src/VBox/Frontends
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r51634 r51670  
    577577}
    578578
    579 STDMETHODIMP VBoxSDLFB::Notify3DEvent(ULONG uType, BYTE *pReserved)
     579STDMETHODIMP VBoxSDLFB::Notify3DEvent(ULONG uType, ComSafeArrayIn(BYTE, aData))
    580580{
    581581    return E_NOTIMPL;
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r51634 r51670  
    9696    STDMETHOD(ProcessVHWACommand)(BYTE *pCommand);
    9797
    98     STDMETHOD(Notify3DEvent)(ULONG uType, BYTE *pReserved);
     98    STDMETHOD(Notify3DEvent)(ULONG uType, ComSafeArrayIn(BYTE, aData));
    9999
    100100    // internal public methods
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r51657 r51670  
    409409}
    410410
    411 STDMETHODIMP UIFrameBuffer::Notify3DEvent(ULONG uType, BYTE *pData)
     411STDMETHODIMP UIFrameBuffer::Notify3DEvent(ULONG uType, ComSafeArrayIn(BYTE, aData))
    412412{
    413413    /* Lock access to frame-buffer: */
     
    426426    }
    427427
     428    com::SafeArray<BYTE> data(ComSafeArrayInArg(aData));
    428429    switch (uType)
    429430    {
     
    432433            /* Notify machine-view with the async-signal
    433434             * about 3D overlay visibility change: */
    434             BOOL fVisible = !!pData;
     435            BOOL fVisible = data[0];
    435436            LogRel2(("UIFrameBuffer::Notify3DEvent: Sending to async-handler: "
    436437                     "(VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_3DDATA = %s)\n",
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r51627 r51670  
    152152    /** EMT callback: Notifies frame-buffer about 3D backend event.
    153153      * @param        uType Event type. Currently only VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_3DDATA is supported.
    154       * @param        pData Event-specific data, depends on the supplied event type.
    155       * @note         Any EMT callback is subsequent. No any other EMT callback can be called until this one processed.
    156       * @note         Calls to this and #setMarkAsUnused method are synchronized (from GUI side). */
    157     STDMETHOD(Notify3DEvent)(ULONG uType, BYTE *pData);
     154      * @param        aData Event-specific data, depends on the supplied event type.
     155      * @note         Any EMT callback is subsequent. No any other EMT callback can be called until this one processed.
     156      * @note         Calls to this and #setMarkAsUnused method are synchronized (from GUI side). */
     157    STDMETHOD(Notify3DEvent)(ULONG uType, ComSafeArrayIn(BYTE, aData));
    158158
    159159    /** Returns frame-buffer data address. */
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