Changeset 53153 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Oct 27, 2014 2:52:20 PM (10 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_vrdp.cpp
r53145 r53153 2 2 3 3 /** @file 4 * Presenter API: display window root class implementation.4 * Presenter API: CrFbDisplayVrdp class implementation -- display content over VRDP. 5 5 */ 6 6 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window.cpp
r53145 r53153 2 2 3 3 /** @file 4 * Presenter API: display window class implementation.4 * Presenter API: CrFbDisplayWindow class implementation -- display content into host GUI window. 5 5 */ 6 6 … … 19 19 #include "server_presenter.h" 20 20 21 CrFbDisplayWindow::CrFbDisplayWindow(const RTRECT *pViewportRect, uint64_t parentId , uint64_t defaultParentId) :21 CrFbDisplayWindow::CrFbDisplayWindow(const RTRECT *pViewportRect, uint64_t parentId) : 22 22 mpWindow(NULL), 23 23 mViewportRect(*pViewportRect), 24 24 mu32Screen(~0), 25 mParentId(parentId), 26 mDefaultParentId(defaultParentId) 25 mParentId(parentId) 27 26 { 28 27 mFlags.u32Value = 0; … … 242 241 243 242 return mpWindow; 244 }245 246 247 int CrFbDisplayWindow::setDefaultParent(uint64_t parentId)248 {249 mDefaultParentId = parentId;250 251 if (!isActive() && mpWindow)252 {253 int rc = mpWindow->Reparent(parentId);254 if (!RT_SUCCESS(rc))255 {256 WARN(("window reparent failed"));257 return rc;258 }259 }260 261 return VINF_SUCCESS;262 243 } 263 244 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window_rootvr.cpp
r53145 r53153 2 2 3 3 /** @file 4 * Presenter API: display window root class implementation.4 * Presenter API: CrFbDisplayWindowRootVr class implementation -- display seamless content. 5 5 */ 6 6 … … 20 20 21 21 22 CrFbDisplayWindowRootVr::CrFbDisplayWindowRootVr(const RTRECT *pViewportRect, uint64_t parentId , uint64_t defaultParentId) :23 CrFbDisplayWindow(pViewportRect, parentId , defaultParentId)22 CrFbDisplayWindowRootVr::CrFbDisplayWindowRootVr(const RTRECT *pViewportRect, uint64_t parentId) : 23 CrFbDisplayWindow(pViewportRect, parentId) 24 24 { 25 25 CrVrScrCompositorInit(&mCompositor, NULL); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp
r53145 r53153 2155 2155 } 2156 2156 2157 pDpInfo->pDpWinRootVr = new CrFbDisplayWindowRootVr(&cr_server.screenVieport[pDpInfo->u32Id].Rect, cr_server.screen[pDpInfo->u32Id].winID , /*cr_server.screen[0].winID*/ 0);2157 pDpInfo->pDpWinRootVr = new CrFbDisplayWindowRootVr(&cr_server.screenVieport[pDpInfo->u32Id].Rect, cr_server.screen[pDpInfo->u32Id].winID); 2158 2158 pDpInfo->pDpWin = pDpInfo->pDpWinRootVr; 2159 2159 pDpInfo->pDpWinRootVr->windowAttach(pDpInfo->pWindow); … … 2179 2179 pDpInfo->pWindow = new CrFbWindow(0); 2180 2180 2181 pDpInfo->pDpWin = new CrFbDisplayWindow(&cr_server.screenVieport[pDpInfo->u32Id].Rect, cr_server.screen[pDpInfo->u32Id].winID , /*cr_server.screen[0].winID*/ 0);2181 pDpInfo->pDpWin = new CrFbDisplayWindow(&cr_server.screenVieport[pDpInfo->u32Id].Rect, cr_server.screen[pDpInfo->u32Id].winID); 2182 2182 pDpInfo->pDpWin->windowAttach(pDpInfo->pWindow); 2183 2183 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.h
r53145 r53153 257 257 public: 258 258 259 CrFbDisplayWindow(const RTRECT *pViewportRect, uint64_t parentId , uint64_t defaultParentId);259 CrFbDisplayWindow(const RTRECT *pViewportRect, uint64_t parentId); 260 260 virtual ~CrFbDisplayWindow(); 261 261 virtual int UpdateBegin(struct CR_FRAMEBUFFER *pFb); … … 270 270 virtual CrFbWindow * windowDetach(bool fCleanup = true); 271 271 virtual CrFbWindow * windowAttach(CrFbWindow * pNewWindow); 272 virtual int setDefaultParent(uint64_t parentId);273 272 virtual int reparent(uint64_t parentId); 274 273 virtual bool isVisible(); … … 307 306 uint32_t mu32Screen; 308 307 uint64_t mParentId; 309 uint64_t mDefaultParentId;310 308 }; 311 309 … … 315 313 public: 316 314 317 CrFbDisplayWindowRootVr(const RTRECT *pViewportRect, uint64_t parentId , uint64_t defaultParentId);315 CrFbDisplayWindowRootVr(const RTRECT *pViewportRect, uint64_t parentId); 318 316 virtual int EntryCreated(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry); 319 317 virtual int EntryAdded(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry);
Note:
See TracChangeset
for help on using the changeset viewer.