VirtualBox

Changeset 51605 in vbox


Ignore:
Timestamp:
Jun 11, 2014 12:57:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94340
Message:

Main,Frontends: removed obsolete IFramebuffer methods: Address, UsesGuestVRAM, Lock, Unlock

Location:
trunk/src/VBox
Files:
6 edited

Legend:

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

    r51547 r51605  
    284284
    285285/**
    286  * Lock the framebuffer (make its address immutable).
    287  *
    288  * @returns COM status code
    289  */
    290 STDMETHODIMP VBoxSDLFB::Lock()
    291 {
    292     LogFlow(("VBoxSDLFB::Lock\n"));
    293     RTCritSectEnter(&mUpdateLock);
    294     return S_OK;
    295 }
    296 
    297 /**
    298  * Unlock the framebuffer.
    299  *
    300  * @returns COM status code
    301  */
    302 STDMETHODIMP VBoxSDLFB::Unlock()
    303 {
    304     LogFlow(("VBoxSDLFB::Unlock\n"));
    305     RTCritSectLeave(&mUpdateLock);
    306     return S_OK;
    307 }
    308 
    309 /**
    310  * Return the framebuffer start address.
    311  *
    312  * @returns COM status code.
    313  * @param   address Pointer to result variable.
    314  */
    315 STDMETHODIMP VBoxSDLFB::COMGETTER(Address)(BYTE **address)
    316 {
    317     LogFlow(("VBoxSDLFB::GetAddress\n"));
    318     if (!address)
    319         return E_INVALIDARG;
    320 
    321     if (!mSurfVRAM)
    322     {
    323         /* That's actually rather bad. */
    324         AssertMsgFailed(("mSurfVRAM is NULL!\n"));
    325         return E_FAIL;
    326     }
    327 
    328     *address = (BYTE *) mSurfVRAM->pixels;
    329     LogFlow(("VBoxSDL::GetAddress returning %p\n", *address));
    330     return S_OK;
    331 }
    332 
    333 /**
    334286 * Return the current framebuffer color depth.
    335287 *
     
    370322        return E_POINTER;
    371323    *pixelFormat = FramebufferPixelFormat_FOURCC_RGB;
    372     return S_OK;
    373 }
    374 
    375 STDMETHODIMP VBoxSDLFB::COMGETTER(UsesGuestVRAM) (BOOL *usesGuestVRAM)
    376 {
    377     if (!usesGuestVRAM)
    378         return E_POINTER;
    379     *usesGuestVRAM = TRUE;
    380324    return S_OK;
    381325}
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r51547 r51605  
    7474    STDMETHOD(COMGETTER(Width))(ULONG *width);
    7575    STDMETHOD(COMGETTER(Height))(ULONG *height);
    76     STDMETHOD(Lock)();
    77     STDMETHOD(Unlock)();
    78     STDMETHOD(COMGETTER(Address))(BYTE **address);
    7976    STDMETHOD(COMGETTER(BitsPerPixel))(ULONG *bitsPerPixel);
    8077    STDMETHOD(COMGETTER(BytesPerLine))(ULONG *bytesPerLine);
    8178    STDMETHOD(COMGETTER(PixelFormat)) (ULONG *pixelFormat);
    82     STDMETHOD(COMGETTER(UsesGuestVRAM)) (BOOL *usesGuestVRAM);
    8379    STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction);
    8480    STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r51602 r51605  
    110110}
    111111
    112 STDMETHODIMP UIFrameBuffer::COMGETTER(Address)(BYTE **ppAddress)
    113 {
    114     if (!ppAddress)
    115         return E_POINTER;
    116     *ppAddress = address();
    117     return S_OK;
    118 }
    119 
    120112STDMETHODIMP UIFrameBuffer::COMGETTER(Width)(ULONG *puWidth)
    121113{
     
    158150}
    159151
    160 STDMETHODIMP UIFrameBuffer::COMGETTER(UsesGuestVRAM)(BOOL *pbUsesGuestVRAM)
    161 {
    162     if (!pbUsesGuestVRAM)
    163         return E_POINTER;
    164     *pbUsesGuestVRAM = true;
    165     return S_OK;
    166 }
    167 
    168152STDMETHODIMP UIFrameBuffer::COMGETTER(HeightReduction)(ULONG *puHeightReduction)
    169153{
     
    187171        return E_POINTER;
    188172    *pWinId = m_iWinId;
    189     return S_OK;
    190 }
    191 
    192 STDMETHODIMP UIFrameBuffer::Lock()
    193 {
    194     this->lock();
    195     return S_OK;
    196 }
    197 
    198 STDMETHODIMP UIFrameBuffer::Unlock()
    199 {
    200     this->unlock();
    201173    return S_OK;
    202174}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r51602 r51605  
    100100
    101101    /* IFramebuffer COM methods: */
    102     STDMETHOD(COMGETTER(Address))(BYTE **ppAddress);
    103102    STDMETHOD(COMGETTER(Width))(ULONG *puWidth);
    104103    STDMETHOD(COMGETTER(Height))(ULONG *puHeight);
     
    106105    STDMETHOD(COMGETTER(BytesPerLine))(ULONG *puBytesPerLine);
    107106    STDMETHOD(COMGETTER(PixelFormat))(ULONG *puPixelFormat);
    108     STDMETHOD(COMGETTER(UsesGuestVRAM))(BOOL *pbUsesGuestVRAM);
    109107    STDMETHOD(COMGETTER(HeightReduction))(ULONG *puHeightReduction);
    110108    STDMETHOD(COMGETTER(Overlay))(IFramebufferOverlay **ppOverlay);
    111109    STDMETHOD(COMGETTER(WinId))(LONG64 *pWinId);
    112 
    113     /* IFramebuffer sync methods: */
    114     STDMETHOD(Lock)();
    115     STDMETHOD(Unlock)();
    116110
    117111    /** EMT callback: Notifies frame-buffer about guest-screen size change.
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r51601 r51605  
    1525315253  <interface
    1525415254    name="IFramebuffer" extends="$unknown"
    15255     uuid="29e4a04d-03a7-4860-977b-a987c3e92c2b"
     15255    uuid="929e4228-f7cf-436d-99a0-dcf6596473b2"
    1525615256    wsmap="managed"
    1525715257    >
    15258     <attribute name="address" type="octet" mod="ptr" readonly="yes" wsmap="suppress">
    15259       <desc>Address of the start byte of the frame buffer.</desc>
    15260     </attribute>
    15261 
    1526215258    <attribute name="width" type="unsigned long" readonly="yes">
    1526315259      <desc>Frame buffer width, in pixels.</desc>
     
    1529315289          buffer must be always known.
    1529415290        </note>
    15295       </desc>
    15296     </attribute>
    15297 
    15298     <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
    15299       <desc>
    15300         Defines whether this frame buffer uses the virtual video card's memory
    15301         buffer (guest VRAM) directly or not.
    1530215291      </desc>
    1530315292    </attribute>
     
    1533415323      </desc>
    1533515324    </attribute>
    15336 
    15337     <method name="lock" wsmap="suppress">
    15338       <desc>
    15339         Locks the frame buffer.
    15340         Gets called by the IDisplay object where this frame buffer is
    15341         bound to.
    15342       </desc>
    15343     </method>
    15344 
    15345     <method name="unlock" wsmap="suppress">
    15346       <desc>
    15347         Unlocks the frame buffer.
    15348         Gets called by the IDisplay object where this frame buffer is
    15349         bound to.
    15350       </desc>
    15351     </method>
    1535215325
    1535315326    <method name="notifyUpdate" wsmap="suppress">
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r51604 r51605  
    11231123    if (pFramebuffer != NULL)
    11241124    {
    1125         pFramebuffer->Lock();
    1126 
    11271125        if (w != 0 && h != 0)
    11281126            pFramebuffer->NotifyUpdate(x, y, w, h);
    1129 
    1130         pFramebuffer->Unlock();
    11311127    }
    11321128
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