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/inc/quartz/salgdicommon.hxx | |
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/inc/quartz/salgdicommon.hxx')
-rw-r--r-- | vcl/inc/quartz/salgdicommon.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/inc/quartz/salgdicommon.hxx b/vcl/inc/quartz/salgdicommon.hxx index 425010324e72..b0d9a2fdea7c 100644 --- a/vcl/inc/quartz/salgdicommon.hxx +++ b/vcl/inc/quartz/salgdicommon.hxx @@ -20,6 +20,8 @@ #ifndef INCLUDED_VCL_INC_QUARTZ_SALGDICOMMON_HXX #define INCLUDED_VCL_INC_QUARTZ_SALGDICOMMON_HXX +#include <iostream> + #include <premac.h> #ifdef IOS #include <CoreGraphics/CoreGraphics.h> @@ -64,6 +66,16 @@ inline RGBAColor::RGBAColor( float fRed, float fGreen, float fBlue, float fAlpha m_fRGBA[3] = fAlpha; } +inline std::ostream &operator <<(std::ostream& s, const RGBAColor &aColor) +{ +#ifndef SAL_LOG_INFO + (void) aColor; +#else + s << "{" << aColor.GetRed() << "," << aColor.GetGreen() << "," << aColor.GetBlue() << "," << aColor.GetAlpha() << "}"; +#endif + return s; +} + // XOR emulation suckage. // See http://www.openoffice.org/marketing/ooocon2008/programme/wednesday_1401.pdf // and https://bugs.freedesktop.org/show_bug.cgi?id=38844 . |