Changeset 52398 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Aug 18, 2014 4:10:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r52391 r52398 930 930 931 931 /* ensure window contents is updated after that */ 932 [self setNeedsDisplay:YES];932 [self performSelectorOnMainThread:@selector(vboxTryDrawUI) withObject:nil waitUntilDone:NO]; 933 933 } 934 934 … … 1179 1179 { 1180 1180 glFlush(); 1181 1181 1182 DEBUG_MSG(("My[%p]: Draw\n", self)); 1182 1183 /* issue to the gui thread */ 1183 1184 [self performSelectorOnMainThread:@selector(vboxTryDrawUI) withObject:nil waitUntilDone:NO]; … … 1204 1205 - (void)vboxTryDrawUI 1205 1206 { 1207 DEBUG_MSG(("My[%p]: DrawUI\n", self)); 1206 1208 const VBOXVR_SCR_COMPOSITOR *pCompositor; 1207 1209 int rc = renderspuVBoxCompositorLock(m_pWinInfo, &pCompositor); … … 1214 1216 if (!pCompositor && !m_fCleanupNeeded) 1215 1217 { 1218 DEBUG_MSG(("My[%p]: noCompositorUI\n", self)); 1216 1219 renderspuVBoxCompositorUnlock(m_pWinInfo); 1217 1220 return; … … 1244 1247 else 1245 1248 { 1249 DEBUG_MSG(("My[%p]: NeedCleanup\n", self)); 1246 1250 Assert(m_fCleanupNeeded); 1247 1251 CrVrScrCompositorInit(&TmpCompositor, NULL); … … 1254 1258 [self unlockFocus]; 1255 1259 } 1260 else if (!m_pWinInfo->visible) 1261 { 1262 DEBUG_MSG(("My[%p]: NotVisible\n", self)); 1263 m_fCleanupNeeded = false; 1264 } 1256 1265 else 1257 1266 { 1267 DEBUG_MSG(("My[%p]: Reschedule\n", self)); 1258 1268 [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(vboxTryDrawUI) userInfo:nil repeats:NO]; 1259 1269 } … … 1298 1308 } 1299 1309 1300 m_fCleanupNeeded = GL_FALSE;1310 m_fCleanupNeeded = false; 1301 1311 1302 1312 /* Render FBO content to the dock tile when necessary. */
Note:
See TracChangeset
for help on using the changeset viewer.