From 4eba5b7917bee583eee9f31c6f57cfa3880b5bcc Mon Sep 17 00:00:00 2001 From: Joe Drew Date: Wed, 4 Jan 2012 18:02:59 -0500 Subject: [PATCH] Bug 715243 - Add the ability to use gfx logging on Matrix. r=Bas --- gfx/2d/Logging.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/2d/Logging.h b/gfx/2d/Logging.h index 44b3f143db2a..f5e52052409c 100644 --- a/gfx/2d/Logging.h +++ b/gfx/2d/Logging.h @@ -43,6 +43,7 @@ #include #include "Point.h" +#include "Matrix.h" #ifdef WIN32 #include @@ -115,6 +116,9 @@ public: { mMessage << "(" << aSize.width << "x" << aSize.height << ")"; return *this; } Log &operator <<(const IntSize &aSize) { mMessage << "(" << aSize.width << "x" << aSize.height << ")"; return *this; } + Log &operator<<(const Matrix& aMatrix) + { mMessage << "[ " << aMatrix._11 << " " << aMatrix._12 << " ; " << aMatrix._21 << " " << aMatrix._22 << " ; " << aMatrix._31 << " " << aMatrix._32 << " ]"; return *this; } + private: