[Libreoffice-commits] core.git: vcl/quartz
Tor Lillqvist
tml at collabora.com
Fri Apr 4 06:00:01 PDT 2014
vcl/quartz/salgdicommon.cxx | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit d4cfcac610e96cd5d1afecc5a23f715298dad939
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Apr 4 13:21:28 2014 +0300
Add more CG_TRACEs for completeness
Change-Id: If502c3f11c034f3c7386754d84d694a7119c0d37
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 7134675..33ee232 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();
}
More information about the Libreoffice-commits
mailing list