Bug 1036967 - Follow-up to fix debug logging. r=me
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 23 Mar 2015 08:21:10 -0400
changeset 263902 834936a75fb276246fb757d96d50d1cd440f8eff
parent 263901 950b3418cbf96cd29c7daaed92c4aec5a7000b6a
child 263903 998d7bdb1f15e1a7ca38b7d79e15bcfb6860a680
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1036967
milestone39.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 1036967 - Follow-up to fix debug logging. r=me
gfx/layers/LayersLogging.h
--- a/gfx/layers/LayersLogging.h
+++ b/gfx/layers/LayersLogging.h
@@ -181,23 +181,25 @@ AppendToString(std::stringstream& aStrea
   aStream << sfx;
 }
 
 template<class src, class dst>
 void
 AppendToString(std::stringstream& aStream, const mozilla::gfx::ScaleFactors2D<src, dst>& scale,
                const char* pfx="", const char* sfx="")
 {
+  aStream << pfx;
   std::streamsize oldPrecision = aStream.precision(3);
   if (scale.AreScalesSame()) {
     aStream << scale.xScale;
   } else {
     aStream << '(' << scale.xScale << ',' << scale.yScale << ')';
   }
   aStream.precision(oldPrecision);
+  aStream << sfx;
 }
 
 void
 AppendToString(std::stringstream& aStream, const mozilla::gfx::Matrix4x4& m,
                const char* pfx="", const char* sfx="");
 
 void
 AppendToString(std::stringstream& aStream, const mozilla::gfx::Matrix5x4& m,