Bug 671986 - ImageLayerOGL does not apply offset/transform for layer r=jrmuizel
authorOleg Romashin <romaxa@gmail.com>
Sun, 17 Jul 2011 12:07:41 +0200
changeset 72919 78dbd3c697f1fe8777faee0a65c43950020586d4
parent 72918 8e5f130a6640ce37dceb08f557129249a884ee35
child 72920 8ec9937d4cb63d9c860c9a2ec50db318964ca49a
push id593
push userMs2ger@gmail.com
push dateSun, 17 Jul 2011 10:10:03 +0000
treeherdermozilla-inbound@de00c2c0f208 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs671986
milestone8.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 671986 - ImageLayerOGL does not apply offset/transform for layer r=jrmuizel
gfx/layers/opengl/ImageLayerOGL.cpp
--- a/gfx/layers/opengl/ImageLayerOGL.cpp
+++ b/gfx/layers/opengl/ImageLayerOGL.cpp
@@ -942,16 +942,19 @@ ShadowImageLayerOGL::RenderLayer(int aPr
   mOGLManager->MakeCurrent();
 
   if (mTexImage) {
     ColorTextureLayerProgram *colorProgram =
       mOGLManager->GetColorTextureLayerProgram(mTexImage->GetShaderProgramType());
 
     colorProgram->Activate();
     colorProgram->SetTextureUnit(0);
+    colorProgram->SetLayerTransform(GetEffectiveTransform());
+    colorProgram->SetLayerOpacity(GetEffectiveOpacity());
+    colorProgram->SetRenderOffset(aOffset);
 
     mTexImage->BeginTileIteration();
     do {
       TextureImage::ScopedBindTexture texBind(mTexImage, LOCAL_GL_TEXTURE0);
       ApplyFilter(mFilter);
       colorProgram->SetLayerQuadRect(mTexImage->GetTileRect());
       mOGLManager->BindAndDrawQuad(colorProgram);
     } while (mTexImage->NextTile());