Bug 958596 - Add gfx logging support for 'char'. r=Bas
authorBotond Ballo <botond@mozilla.com>
Tue, 21 Jan 2014 20:26:00 -0500
changeset 171542 f6a8fd3cc486531f75a96b0df2003ee687fcb442
parent 171541 6d773a03f6809a5376c0d3f3eddd12ec335a129c
child 171543 5de6d97667b063abb848b77c28e6f3ff46b3ee82
push id26328
push userryanvm@gmail.com
push dateMon, 03 Mar 2014 21:52:32 +0000
treeherdermozilla-central@93443ede8152 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs958596
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 958596 - Add gfx logging support for 'char'. r=Bas
gfx/2d/Logging.h
--- a/gfx/2d/Logging.h
+++ b/gfx/2d/Logging.h
@@ -81,16 +81,17 @@ public:
 
 template<int L>
 class Log
 {
 public:
   Log() {}
   ~Log() { mMessage << '\n'; WriteLog(mMessage.str()); }
 
+  Log &operator <<(char aChar) { mMessage << aChar; return *this; }
   Log &operator <<(const std::string &aLogText) { mMessage << aLogText; return *this; }
   Log &operator <<(const char aStr[]) { mMessage << static_cast<const char*>(aStr); return *this; }
   Log &operator <<(bool aBool) { mMessage << (aBool ? "true" : "false"); return *this; }
   Log &operator <<(int aInt) { mMessage << aInt; return *this; }
   Log &operator <<(unsigned int aInt) { mMessage << aInt; return *this; }
   Log &operator <<(long aLong) { mMessage << aLong; return *this; }
   Log &operator <<(unsigned long aLong) { mMessage << aLong; return *this; }
   Log &operator <<(Float aFloat) { mMessage << aFloat; return *this; }