Changeset 53167 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Timestamp:
- Oct 31, 2014 10:44:30 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96707
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window.cpp
r53157 r53167 77 77 } 78 78 79 if (mpWindow && mpWindow->GetParentId())80 {81 if (!mpWindow->IsCreated())82 {83 rc = mpWindow->Create();84 if (!RT_SUCCESS(rc))85 {86 WARN(("err"));87 return rc;88 }89 }90 }91 92 79 return VINF_SUCCESS; 93 80 } … … 103 90 } 104 91 105 if (mpWindow && mpWindow->GetParentId())106 {107 if (!mpWindow->IsCreated())108 {109 rc = mpWindow->Create();110 if (!RT_SUCCESS(rc))111 {112 WARN(("err"));113 return rc;114 }115 }116 }117 118 92 return VINF_SUCCESS; 119 93 } … … 129 103 } 130 104 131 if (mpWindow && mpWindow->GetParentId())132 {133 if (!mpWindow->IsCreated())134 {135 rc = mpWindow->Create();136 if (!RT_SUCCESS(rc))137 {138 WARN(("err"));139 return rc;140 }141 }142 }143 144 105 return VINF_SUCCESS; 145 106 } … … 153 114 WARN(("err")); 154 115 return rc; 155 }156 157 if (mpWindow && mpWindow->GetParentId())158 {159 if (!mpWindow->IsCreated())160 {161 rc = mpWindow->Create();162 if (!RT_SUCCESS(rc))163 {164 WARN(("err"));165 return rc;166 }167 }168 116 } 169 117 … … 561 509 } 562 510 563 if (CrFbHas3DData(hFb))564 {565 if (mpWindow && mpWindow->GetParentId())566 {567 if (mpWindow->IsCreated())568 mpWindow->Destroy();569 570 rc = mpWindow->Create();571 if (!RT_SUCCESS(rc))572 {573 WARN(("err"));574 return rc;575 }576 }577 }578 579 511 return VINF_SUCCESS; 580 512 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.h
r53153 r53167 218 218 void UpdateEnd(); 219 219 uint64_t GetParentId(); 220 ~CrFbWindow(); 221 222 protected: 223 220 224 int Create(); 221 ~CrFbWindow();222 223 protected:224 225 225 void checkRegions(); 226 226 bool isPresentNeeded(); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/window.cpp
r53158 r53167 31 31 { 32 32 mFlags.Value = 0; 33 Create(); 33 34 } 34 35 … … 38 39 return !!mSpuWindow; 39 40 } 41 40 42 41 43 bool CrFbWindow::IsVisivle() const
Note:
See TracChangeset
for help on using the changeset viewer.