Kaydet (Commit) 2a163c78 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add some more CG_TRACEs

Change-Id: I076fd5957cac62f047778e63a1336bd322f90683
üst fecd4c53
...@@ -2002,6 +2002,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex ...@@ -2002,6 +2002,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
// We will return early a few lines lower. // We will return early a few lines lower.
// Undo the "stack initialization" done at the initial call of // Undo the "stack initialization" done at the initial call of
// this method, see end. // this method, see end.
CG_TRACE( "CGContextRestoreGState(" << mrContext << ")" );
CGContextRestoreGState( mrContext ); CGContextRestoreGState( mrContext );
} }
#endif #endif
...@@ -2027,12 +2028,14 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex ...@@ -2027,12 +2028,14 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
{ {
mnWidth = CGBitmapContextGetWidth( mrContext ); mnWidth = CGBitmapContextGetWidth( mrContext );
mnHeight = CGBitmapContextGetHeight( mrContext ); mnHeight = CGBitmapContextGetHeight( mrContext );
CG_TRACE( "CGBitmapContextGetWidth&Height(" << mrContext << ") = " << mnWidth << "x" << mnHeight );
} }
else else
{ {
const CGSize aSize = CGLayerGetSize( mxLayer ); const CGSize aSize = CGLayerGetSize( mxLayer );
mnWidth = static_cast<int>(aSize.width); mnWidth = static_cast<int>(aSize.width);
mnHeight = static_cast<int>(aSize.height); mnHeight = static_cast<int>(aSize.height);
CG_TRACE( "CGLayerGetSize(" << mxLayer << ") = " << aSize );
} }
// prepare graphics for drawing // prepare graphics for drawing
...@@ -2049,6 +2052,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex ...@@ -2049,6 +2052,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
} }
// initialize stack of CGContext states // initialize stack of CGContext states
CG_TRACE( "CGContextSaveGState(" << mrContext << ")" );
CGContextSaveGState( mrContext ); CGContextSaveGState( mrContext );
SetState(); SetState();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment