Bug 687458 - TimeStamp in FPSState uninitialized, leads to crash; r=romaxa
authorFlorian Hänel <florian.haenel@heeen.de>
Thu, 22 Sep 2011 00:16:12 -0400
changeset 78618 70e0fdded87df54bfe757e4a25a3aaa680f9fbc2
parent 78617 362691b74d6c04c943bced5cfa41ba9c5c61553b
child 78619 cf4a13b84474d0a743eecd461beb1dae0c0f5f97
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersromaxa
bugs687458
milestone9.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 687458 - TimeStamp in FPSState uninitialized, leads to crash; r=romaxa
gfx/layers/opengl/LayerManagerOGL.h
--- a/gfx/layers/opengl/LayerManagerOGL.h
+++ b/gfx/layers/opengl/LayerManagerOGL.h
@@ -494,17 +494,19 @@ private:
       int fcount;
       TimeStamp last;
 
       FPSState()
         : texture(0)
         , fps(0)
         , initialized(false)
         , fcount(0)
-      {}
+      {
+        last = TimeStamp::Now();
+      }
       void DrawFPS(GLContext*, CopyProgram*);
   } mFPS;
 
   static PRBool sDrawFPS;
 };
 
 /**
  * General information and tree management for OGL layers.