From 2a163c787b991c57e7e32ea6909cce5e38427974 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 1 Apr 2014 17:20:44 +0300 Subject: Add some more CG_TRACEs Change-Id: I076fd5957cac62f047778e63a1336bd322f90683 --- vcl/quartz/salgdicommon.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vcl') diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index e0968e99d232..de28d5a67994 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -2002,6 +2002,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex // We will return early a few lines lower. // Undo the "stack initialization" done at the initial call of // this method, see end. + CG_TRACE( "CGContextRestoreGState(" << mrContext << ")" ); CGContextRestoreGState( mrContext ); } #endif @@ -2027,12 +2028,14 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex { mnWidth = CGBitmapContextGetWidth( mrContext ); mnHeight = CGBitmapContextGetHeight( mrContext ); + CG_TRACE( "CGBitmapContextGetWidth&Height(" << mrContext << ") = " << mnWidth << "x" << mnHeight ); } else { const CGSize aSize = CGLayerGetSize( mxLayer ); mnWidth = static_cast(aSize.width); mnHeight = static_cast(aSize.height); + CG_TRACE( "CGLayerGetSize(" << mxLayer << ") = " << aSize ); } // prepare graphics for drawing @@ -2049,6 +2052,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex } // initialize stack of CGContext states + CG_TRACE( "CGContextSaveGState(" << mrContext << ")" ); CGContextSaveGState( mrContext ); SetState(); } -- cgit