summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-04 13:21:28 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-04 15:59:14 +0300
commitd4cfcac610e96cd5d1afecc5a23f715298dad939 (patch)
tree9e01dcb38b89a47cb85a418f14dd849a3c365bcc /vcl/quartz
parent6a761619141a42123c64b942bdfd24294e3a7b91 (diff)
Add more CG_TRACEs for completeness
Change-Id: If502c3f11c034f3c7386754d84d694a7119c0d37
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salgdicommon.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 71346758cad4..33ee232108ea 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1601,14 +1601,19 @@ void AquaSalGraphics::ResetClipRegion()
void AquaSalGraphics::SetState()
{
+ CG_TRACE( "CGContextRestoreGState(" << mrContext << ") " << mnContextStackDepth--);
CGContextRestoreGState( mrContext );
+ CG_TRACE( "CGContextSaveGState(" << mrContext << ") " << ++mnContextStackDepth );
CGContextSaveGState( mrContext );
// setup clipping
if( mxClipPath )
{
+ CG_TRACE( "CGContextBeginPath(" << mrContext << ")" );
CGContextBeginPath( mrContext ); // discard any existing path
+ CG_TRACE( "CGContextAddPath(" << mrContext << "," << mxClipPath << ")" );
CGContextAddPath( mrContext, mxClipPath ); // set the current path to the clipping path
+ CG_TRACE( "CGContextClip(" << mrContext << ")" );
CGContextClip( mrContext ); // use it for clipping
}
@@ -1998,7 +2003,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 << ")" );
+ CG_TRACE( "CGContextRestoreGState(" << mrContext << ") " << mnContextStackDepth--);
CGContextRestoreGState( mrContext );
}
#endif
@@ -2048,7 +2053,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
}
// initialize stack of CGContext states
- CG_TRACE( "CGContextSaveGState(" << mrContext << ")" );
+ CG_TRACE( "CGContextSaveGState(" << mrContext << ") " << ++mnContextStackDepth );
CGContextSaveGState( mrContext );
SetState();
}