Changeset 19844 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 19, 2009 11:12:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/Framebuffer.h
r19817 r19844 50 50 virtual HRESULT SetVisibleRegion(BYTE *aRectangles, ULONG aCount) = 0; 51 51 52 virtual HRESULT ProcessVHWACommand(BYTE *pCommand) = 0; 53 52 54 virtual void repaint() = 0; 53 55 virtual void resize() = 0; -
trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp
r19817 r19844 336 336 } 337 337 338 HRESULT SDLFramebuffer::ProcessVHWACommand(BYTE *pCommand) 339 { 340 return E_NOTIMPL; 341 } 342 338 343 // 339 344 // Internal public methods -
trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.h
r19817 r19844 55 55 virtual HRESULT SetVisibleRegion(BYTE *aRectangles, ULONG aCount); 56 56 57 virtual HRESULT ProcessVHWACommand(BYTE *pCommand); 58 57 59 virtual void repaint(); 58 60 virtual void resize(); -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.cpp
r19817 r19844 634 634 } 635 635 636 636 STDMETHODIMP FFmpegFB::ProcessVHWACommand(BYTE *pCommand) 637 { 638 return E_NOTIMPL; 639 } 637 640 // Private Methods 638 641 ////////////////////////////////////////////////////////////////////////// -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/FFmpegFB.h
r19817 r19844 107 107 STDMETHOD(GetVisibleRegion)(BYTE *rectangles, ULONG count, ULONG *countCopied); 108 108 STDMETHOD(SetVisibleRegion)(BYTE *rectangles, ULONG count); 109 110 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand); 109 111 110 112 private: -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r19817 r19844 578 578 } 579 579 580 STDMETHODIMP VBoxSDLFB::ProcessVHWACommand(BYTE *pCommand) 581 { 582 return E_NOTIMPL; 583 } 580 584 // 581 585 // Internal public methods -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r19817 r19844 109 109 STDMETHOD(GetVisibleRegion)(BYTE *aRectangles, ULONG aCount, ULONG *aCountCopied); 110 110 STDMETHOD(SetVisibleRegion)(BYTE *aRectangles, ULONG aCount); 111 112 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand); 111 113 112 114 // internal public methods -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r19837 r19844 434 434 endif 435 435 436 ifdef VBOX_WITH_VIDEOHWACCEL 437 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL 438 endif 439 436 440 # The Qt modules we're using. 437 441 # (The include directory and lib/framework for each module will be added by the Qt4 unit.) -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r18654 r19844 218 218 bool isRunning() { return mLastState == KMachineState_Running; } 219 219 220 #ifdef VBOX_WITH_VIDEOHWACCEL 221 void handleVHWACommand(struct _VBOXVHWACMD *pCommand); 222 #endif 223 220 224 static void dimImage (QImage &img); 221 225 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h
r19670 r19844 126 126 AddVDMUrlsEventType, 127 127 ChangeDockIconUpdateEventType 128 #ifdef VBOX_WITH_VIDEOHWACCEL 129 , 130 VHWACommandProcessType 131 #endif 128 132 }; 129 133 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h
r19817 r19844 114 114 }; 115 115 116 #ifdef VBOX_WITH_VIDEOHWACCEL 117 class VBoxVHWACommandProcessEvent : public QEvent 118 { 119 public: 120 VBoxVHWACommandProcessEvent (struct _VBOXVHWACMD * pCmd) 121 : QEvent ((QEvent::Type) VBoxDefs::VHWACommandProcessType) 122 , mpCmd (pCmd) {} 123 struct _VBOXVHWACMD * command() { return mpCmd; } 124 private: 125 struct _VBOXVHWACMD * mpCmd; 126 }; 127 128 #endif 129 116 130 ///////////////////////////////////////////////////////////////////////////// 117 131 … … 205 219 STDMETHOD(GetVisibleRegion)(BYTE *aRectangles, ULONG aCount, ULONG *aCountCopied); 206 220 STDMETHOD(SetVisibleRegion)(BYTE *aRectangles, ULONG aCount); 221 222 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand); 207 223 208 224 ulong width() { return mWdt; } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r19817 r19844 92 92 # include <VBox/err.h> 93 93 #endif /* defined (Q_WS_MAC) */ 94 95 #ifdef VBOX_WITH_VIDEOHWACCEL 96 #include <VBox/VBoxVideo.h> 97 #endif 94 98 95 99 #if defined (Q_WS_WIN32) … … 1689 1693 } 1690 1694 #endif 1695 #ifdef VBOX_WITH_VIDEOHWACCEL 1696 case VBoxDefs::VHWACommandProcessType: 1697 { 1698 VBoxVHWACommandProcessEvent *cmde = (VBoxVHWACommandProcessEvent *)e; 1699 handleVHWACommand(cmde->command()); 1700 return true; 1701 } 1702 #endif 1691 1703 default: 1692 1704 break; … … 1696 1708 return QAbstractScrollArea::event (e); 1697 1709 } 1710 1711 #ifdef VBOX_WITH_VIDEOHWACCEL 1712 void VBoxConsoleView::handleVHWACommand(struct _VBOXVHWACMD *pCmd) 1713 { 1714 switch(pCmd->enmCmd) 1715 { 1716 case VBOXVHWACMD_TYPE_SURF_CREATE: 1717 { 1718 VBOXVHWACMD_SURF_CREATE * pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_CREATE); 1719 pCmd->rc = VERR_NOT_IMPLEMENTED; 1720 break; 1721 } break; 1722 case VBOXVHWACMD_TYPE_SURF_DESTROY: 1723 { 1724 VBOXVHWACMD_SURF_DESTROY * pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_DESTROY); 1725 pCmd->rc = VERR_NOT_IMPLEMENTED; 1726 break; 1727 } break; 1728 } 1729 1730 CDisplay display = mConsole.GetDisplay(); 1731 Assert (!display.isNull()); 1732 1733 display.CompleteVHWACommand((BYTE*)pCmd); 1734 } 1735 #endif 1698 1736 1699 1737 bool VBoxConsoleView::eventFilter (QObject *watched, QEvent *e) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp
r19817 r19844 260 260 } 261 261 262 STDMETHODIMP VBoxFrameBuffer::ProcessVHWACommand(BYTE *pCommand) 263 { 264 #ifdef VBOX_WITH_VIDEOHWACCEL 265 QApplication::postEvent (mView, 266 new VBoxVHWACommandProcessEvent ((struct _VBOXVHWACMD*)pCommand)); 267 return S_OK; 268 #else 269 return E_NOTIMPL; 270 #endif 271 } 272 262 273 // 263 274 // VBoxQImageFrameBuffer class
Note:
See TracChangeset
for help on using the changeset viewer.