diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-31 21:05:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-31 21:09:07 +0300 |
commit | 9c87596c8a0123076249c7bd59eaaa41497b48fc (patch) | |
tree | eeb231b8a97d6cc72076550bbfefab6237a7eea8 /vcl/quartz/utils.cxx | |
parent | 3fec64a87f3b611c13a10c6dd84de0cf9c7c35b5 (diff) |
Add SAL_INFOs for very detailed CoreGraphics tracing
One would think there would exist some kind of shim library that would
automatically provide such traces, hmm.
Change-Id: I568d02a2ac70078dee0280d1feb3eab7bbd43030
Diffstat (limited to 'vcl/quartz/utils.cxx')
-rw-r--r-- | vcl/quartz/utils.cxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx index b2356fdc6adf..1ed6a5141df0 100644 --- a/vcl/quartz/utils.cxx +++ b/vcl/quartz/utils.cxx @@ -67,7 +67,7 @@ NSString* CreateNSString( const OUString& rStr ) return [[NSString alloc] initWithCharacters: rStr.getStr() length: rStr.getLength()]; } -std::ostream &operator <<(std::ostream& s, CGRect &rRect) +std::ostream &operator <<(std::ostream& s, const CGRect &rRect) { #ifndef SAL_LOG_INFO (void) rRect; @@ -80,7 +80,7 @@ std::ostream &operator <<(std::ostream& s, CGRect &rRect) return s; } -std::ostream &operator <<(std::ostream& s, CGPoint &rPoint) +std::ostream &operator <<(std::ostream& s, const CGPoint &rPoint) { #ifndef SAL_LOG_INFO (void) rPoint; @@ -90,7 +90,7 @@ std::ostream &operator <<(std::ostream& s, CGPoint &rPoint) return s; } -std::ostream &operator <<(std::ostream& s, CGSize &rSize) +std::ostream &operator <<(std::ostream& s, const CGSize &rSize) { #ifndef SAL_LOG_INFO (void) rSize; @@ -116,4 +116,17 @@ std::ostream &operator <<(std::ostream& s, CGColorRef pColor) return s; } +std::ostream &operator <<(std::ostream& s, const CGAffineTransform &aXform) +{ +#ifndef SAL_LOG_INFO + (void) aXform; +#else + if (CGAffineTransformIsIdentity(aXform)) + s << "IDENT"; + else + s << "[" << aXform.a << "," << aXform.b << "," << aXform.c << "," << aXform.d << "," << aXform.tx << "," << aXform.ty << "]"; +#endif + return s; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |