Changeset 56419 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 14, 2015 6:27:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m
r56333 r56419 129 129 + (void)createViewAndContext:(VMSVGA3DCreateViewAndContext *)pParams 130 130 { 131 LogFlow(("Ovl WincreateViewAndContext:\n"));131 LogFlow(("OvlView createViewAndContext:\n")); 132 132 133 133 /* … … 217 217 218 218 [pFmt release]; 219 LogFlow(("Ovl WincreateViewAndContext: returns successfully\n"));219 LogFlow(("OvlView createViewAndContext: returns successfully\n")); 220 220 return; 221 221 } … … 227 227 AssertFailed(); 228 228 229 LogFlow(("Ovl WincreateViewAndContext: returns failure\n"));229 LogFlow(("OvlView createViewAndContext: returns failure\n")); 230 230 return; 231 231 } … … 233 233 - (id)initWithFrameAndFormat:(NSRect) frame parentView:(NSView*)pParentView pixelFormat:(NSOpenGLPixelFormat *)pFmt 234 234 { 235 LogFlow(("Ovl Win(%p) initWithFrameAndFormat:\n", (void *)self));235 LogFlow(("OvlView(%p) initWithFrameAndFormat:\n", (void *)self)); 236 236 237 237 m_pParentView = pParentView; … … 250 250 self.autoresizingMask = NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin; 251 251 } 252 LogFlow(("Ovl Win(%p) initWithFrameAndFormat: returns %p\n", (void *)self, (void *)self));252 LogFlow(("OvlView(%p) initWithFrameAndFormat: returns %p\n", (void *)self, (void *)self)); 253 253 return self; 254 254 } … … 256 256 - (void)dealloc 257 257 { 258 LogFlow(("Ovl Win(%p) dealloc:\n", (void *)self));258 LogFlow(("OvlView(%p) dealloc:\n", (void *)self)); 259 259 260 260 #ifdef USE_NSOPENGLVIEW … … 271 271 [super dealloc]; 272 272 273 LogFlow(("Ovl Win(%p) dealloc: returns\n", (void *)self));273 LogFlow(("OvlView(%p) dealloc: returns\n", (void *)self)); 274 274 } 275 275 … … 277 277 - (void)setPos:(NSPoint)pos 278 278 { 279 Log(("Ovl Win(%p) setPos: (%d,%d)\n", (void *)self, (int)pos.x, (int)pos.y));279 Log(("OvlView(%p) setPos: (%d,%d)\n", (void *)self, (int)pos.x, (int)pos.y)); 280 280 281 281 m_Pos = pos; 282 282 [self vboxReshape]; 283 283 284 LogFlow(("Ovl Win(%p) setPos: returns\n", (void *)self));284 LogFlow(("OvlView(%p) setPos: returns\n", (void *)self)); 285 285 } 286 286 … … 288 288 - (void)setSize:(NSSize)size 289 289 { 290 Log(("Ovl Win(%p) setSize: (%d,%d):\n", (void *)self, (int)size.width, (int)size.height));290 Log(("OvlView(%p) setSize: (%d,%d):\n", (void *)self, (int)size.width, (int)size.height)); 291 291 m_Size = size; 292 292 [self vboxReshape]; 293 LogFlow(("Ovl Win(%p) setSize: returns\n", (void *)self));293 LogFlow(("OvlView(%p) setSize: returns\n", (void *)self)); 294 294 } 295 295 … … 299 299 #if 1 /* experiment */ 300 300 if ([NSThread isMainThread]) 301 Log(("Ovl Win(%p) vboxClearBuffers: skip, main thread\n", (void *)self));301 Log(("OvlView(%p) vboxClearBuffers: skip, main thread\n", (void *)self)); 302 302 else 303 303 { 304 Log(("Ovl Win(%p) vboxClearBuffers: clears\n", (void *)self));304 Log(("OvlView(%p) vboxClearBuffers: clears\n", (void *)self)); 305 305 NSOpenGLContext *pSavedCtx = [self makeCurrentGLContext]; 306 306 … … 321 321 - (void)vboxReshape 322 322 { 323 LogFlow(("Ovl Win(%p) vboxReshape:\n", (void *)self));323 LogFlow(("OvlView(%p) vboxReshape:\n", (void *)self)); 324 324 325 325 /* … … 336 336 [self vboxClearBuffers]; 337 337 338 LogFlow(("Ovl Win(%p) vboxReshape: returns\n", (void *)self));338 LogFlow(("OvlView(%p) vboxReshape: returns\n", (void *)self)); 339 339 } 340 340 … … 519 519 520 520 /* The OpenGL context. */ 521 Log(("vmsvga3dCocoaDestroyViewAndContext: ctx %p ref count=%d\n", (void *)pCtx, [p ViewretainCount]));521 Log(("vmsvga3dCocoaDestroyViewAndContext: ctx %p ref count=%d\n", (void *)pCtx, [pCtx retainCount])); 522 522 [pCtx release]; 523 523
Note:
See TracChangeset
for help on using the changeset viewer.