Bug 1341496 - Part 2: Don't use a separate ReadLock for the second component alpha texture as they should always be locked/unlocked at the same time. r?nical
MozReview-Commit-ID: IdkX2CVntX4
--- a/gfx/layers/client/ContentClient.cpp
+++ b/gfx/layers/client/ContentClient.cpp
@@ -326,17 +326,19 @@ ContentClientRemoteBuffer::CreateBackBuf
mForwarder->GetCompositorBackendType(),
mTextureFlags | ExtraTextureFlags(),
TextureAllocationFlags::ALLOC_CLEAR_BUFFER_WHITE
);
if (!mTextureClientOnWhite || !AddTextureClient(mTextureClientOnWhite)) {
AbortTextureClientCreation();
return;
}
- mTextureClientOnWhite->EnableBlockingReadLock();
+ // We don't enable the readlock for the white buffer since we always
+ // use them together and waiting on the lock for the black
+ // should be sufficient.
}
}
void
ContentClientRemoteBuffer::CreateBuffer(ContentType aType,
const IntRect& aRect,
uint32_t aFlags,
RefPtr<gfx::DrawTarget>* aBlackDT,