Bug 1014614 - Do not try to use a temporary texture for SurfaceTexture r=jgilbert a=lsblakk
authorJames Willcox <snorp@snorp.net>
Thu, 06 Nov 2014 09:34:20 -0600
changeset 221128 2a7e9525f500cb5823895197055cc7a676f43290
parent 221127 4053de7eee7ba5fe51b576a64dd3fe5c77e880c4
child 221129 9c77e16f165c5865f42794763e9cff410faf4e9e
push id146
push userryanvm@gmail.com
push dateThu, 06 Nov 2014 22:02:02 +0000
treeherdermozilla-b2g34_v2_1@2e81cf5d2bd7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, lsblakk
bugs1014614
milestone34.0
Bug 1014614 - Do not try to use a temporary texture for SurfaceTexture r=jgilbert a=lsblakk --HG-- extra : rebase_source : 68e6f70fe1c1aa123c4a1e21b3d25b78bcff7ad1
gfx/layers/opengl/TextureHostOGL.cpp
--- a/gfx/layers/opengl/TextureHostOGL.cpp
+++ b/gfx/layers/opengl/TextureHostOGL.cpp
@@ -501,20 +501,18 @@ SurfaceTextureSource::SurfaceTextureSour
 
 void
 SurfaceTextureSource::BindTexture(GLenum aTextureUnit, gfx::Filter aFilter)
 {
   if (!gl()) {
     NS_WARNING("Trying to bind a texture without a GLContext");
     return;
   }
-  GLuint tex = mCompositor->GetTemporaryTexture(GetTextureTarget(), aTextureUnit);
 
   gl()->fActiveTexture(aTextureUnit);
-  gl()->fBindTexture(mTextureTarget, tex);
 #ifndef DEBUG
   // SurfaceTexture spams us if there are any existing GL errors, so
   // we'll clear them here in order to avoid that.
   gl()->GetAndClearError();
 #endif
   mSurfTex->UpdateTexImage();
 
   ApplyFilterToBoundTexture(gl(), aFilter, mTextureTarget);