Bug 1015820: Update the back buffer rect when ensuring a back buffer client exists. r=mattwoodrow
authorBas Schouten <bschouten@mozilla.com>
Sat, 31 May 2014 02:16:35 +0200
changeset 205461 c1acd3bf21ed742b11c26e3b5a026871f251ce2c
parent 205460 2bf38fef6ff2a7c15d947d74ddc0970a2a173c14
child 205462 8c3664b5e1a29eba46a89e430be5f534505c3249
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1015820
milestone32.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 1015820: Update the back buffer rect when ensuring a back buffer client exists. r=mattwoodrow
gfx/layers/client/ContentClient.cpp
--- a/gfx/layers/client/ContentClient.cpp
+++ b/gfx/layers/client/ContentClient.cpp
@@ -512,16 +512,19 @@ ContentClientDoubleBuffered::FinalizeFra
   }
 }
 
 void
 ContentClientDoubleBuffered::EnsureBackBufferIfFrontBuffer()
 {
   if (!mTextureClient && mFrontClient) {
     CreateBackBuffer(mFrontBufferRect);
+
+    mBufferRect = mFrontBufferRect;
+    mBufferRotation = mFrontBufferRotation;
   }
 }
 
 void
 ContentClientDoubleBuffered::UpdateDestinationFrom(const RotatedBuffer& aSource,
                                                    const nsIntRegion& aUpdateRegion)
 {
   DrawIterator iter;