Bug 618788 - Not initialized used in CairoImageOGL::SetData r=vladimir a=approval2.0
authorOleg Romashin <romaxa@gmail.com>
Tue, 21 Dec 2010 20:46:31 +0200
changeset 59560 722ffb1a0920773fc92adac27244e13f3c5a1c95
parent 59559 ab173acf8a1f751ba485980e032d4fe18be4b05d
child 59561 9b02aa0de19c2e6f9b39caf9bfce1f331d00f23b
push id17664
push userromaxa@gmail.com
push dateTue, 21 Dec 2010 18:45:33 +0000
treeherdermozilla-central@722ffb1a0920 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvladimir, approval2.0
bugs618788
milestone2.0b9pre
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 618788 - Not initialized used in CairoImageOGL::SetData r=vladimir a=approval2.0
gfx/layers/opengl/ImageLayerOGL.cpp
--- a/gfx/layers/opengl/ImageLayerOGL.cpp
+++ b/gfx/layers/opengl/ImageLayerOGL.cpp
@@ -655,17 +655,17 @@ PlanarYCbCrImageOGL::UpdateTextures(GLCo
                      LOCAL_GL_UNSIGNED_BYTE,
                      mData.mCrChannel);
 
   // Reset alignment to default
   gl->fPixelStorei(LOCAL_GL_UNPACK_ALIGNMENT, 4);
 }
 
 CairoImageOGL::CairoImageOGL(LayerManagerOGL *aManager)
-  : CairoImage(nsnull)
+  : CairoImage(nsnull), mSize(0, 0)
 {
   NS_ASSERTION(NS_IsMainThread(), "Should be on main thread to create a cairo image");
 
   if (aManager) {
     // Allocate texture now to grab a reference to the GLContext
     mTexture.Allocate(aManager->glForResources());
   }
 }