Changeset 53157 in vbox
- Timestamp:
- Oct 27, 2014 5:24:02 PM (10 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window.cpp
r53153 r53157 25 25 mParentId(parentId) 26 26 { 27 crDebug("CrFbDisplayWindow: created with parentID %p.", parentId); 27 28 mFlags.u32Value = 0; 28 29 } … … 78 79 if (mpWindow && mpWindow->GetParentId()) 79 80 { 80 rc = mpWindow->Create(); 81 if (!RT_SUCCESS(rc)) 82 { 83 WARN(("err")); 84 return rc; 81 if (!mpWindow->IsCreated()) 82 { 83 rc = mpWindow->Create(); 84 if (!RT_SUCCESS(rc)) 85 { 86 WARN(("err")); 87 return rc; 88 } 85 89 } 86 90 } … … 101 105 if (mpWindow && mpWindow->GetParentId()) 102 106 { 103 rc = mpWindow->Create(); 104 if (!RT_SUCCESS(rc)) 105 { 106 WARN(("err")); 107 return rc; 107 if (!mpWindow->IsCreated()) 108 { 109 rc = mpWindow->Create(); 110 if (!RT_SUCCESS(rc)) 111 { 112 WARN(("err")); 113 return rc; 114 } 108 115 } 109 116 } … … 124 131 if (mpWindow && mpWindow->GetParentId()) 125 132 { 126 rc = mpWindow->Create(); 127 if (!RT_SUCCESS(rc)) 128 { 129 WARN(("err")); 130 return rc; 133 if (!mpWindow->IsCreated()) 134 { 135 rc = mpWindow->Create(); 136 if (!RT_SUCCESS(rc)) 137 { 138 WARN(("err")); 139 return rc; 140 } 131 141 } 132 142 } … … 147 157 if (mpWindow && mpWindow->GetParentId()) 148 158 { 149 rc = mpWindow->Create(); 150 if (!RT_SUCCESS(rc)) 151 { 152 WARN(("err")); 153 return rc; 159 if (!mpWindow->IsCreated()) 160 { 161 rc = mpWindow->Create(); 162 if (!RT_SUCCESS(rc)) 163 { 164 WARN(("err")); 165 return rc; 166 } 154 167 } 155 168 } … … 251 264 return VERR_INVALID_STATE; 252 265 } 266 267 crDebug("CrFbDisplayWindow: change parent from %p to %p.", mParentId, parentId); 253 268 254 269 mParentId = parentId; … … 424 439 int rc = VINF_SUCCESS; 425 440 441 crDebug("CrFbDisplayWindow: sync window dimentions: fForceCleanup=%s, mpWindow=%p, isActive()=%s", 442 fForceCleanup ? "yes" : "no", 443 mpWindow, 444 isActive() ? "yes" : "no"); 445 426 446 if (!mpWindow) 427 447 return VINF_SUCCESS; … … 545 565 if (mpWindow && mpWindow->GetParentId()) 546 566 { 567 if (mpWindow->IsCreated()) 568 mpWindow->Destroy(); 569 547 570 rc = mpWindow->Create(); 548 571 if (!RT_SUCCESS(rc)) -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/window.cpp
r53145 r53157 61 61 int CrFbWindow::Reparent(uint64_t parentId) 62 62 { 63 crDebug("CrFbWindow: reparent to %p (current mxPos=%d, myPos=%d, mWidth=%u, mHeight=%u)", 64 parentId, mxPos, myPos, mWidth, mHeight); 65 63 66 if (!checkInitedUpdating()) 64 67 { … … 78 81 renderspuSetWindowId(mParentId); 79 82 renderspuReparentWindow(mSpuWindow); 80 renderspuSetWindowId(cr_server.screen[0].winID);81 83 82 84 if (parentId) … … 100 102 } 101 103 102 LOG(("CrWIN: Vi dible [%d]", fVisible));104 LOG(("CrWIN: Visible [%d]", fVisible)); 103 105 104 106 if (!fVisible != !mFlags.fVisible) … … 265 267 if (mSpuWindow) 266 268 { 267 //WARN(("window already created"));269 WARN(("window already created")); 268 270 return VINF_ALREADY_INITIALIZED; 269 271 } … … 286 288 cr_server.head_spu->dispatch_table.WindowShow(mSpuWindow, true); 287 289 290 crDebug("CrFbWindow: create window with parent %p (mxPos=%d, myPos=%d, mWidth=%u, mHeight=%u)", 291 mParentId, mxPos, myPos, mWidth, mHeight); 292 288 293 return VINF_SUCCESS; 289 294 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c
r52560 r53157 619 619 { 620 620 render_spu_parent_window_id = winId; 621 } 621 crDebug("X11: set new parent window %p (no actual reparent performed)", winId); 622 }
Note:
See TracChangeset
for help on using the changeset viewer.