mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1348291 - Call EndPaint when painting is skipped if BeginPaint was called. r=mattwoodrow
This commit is contained in:
parent
75216516b0
commit
70bbbf5ce9
@ -57,6 +57,7 @@ ClientPaintedLayer::PaintThebes(nsTArray<ReadbackProcessor::Update>* aReadbackUp
|
||||
|
||||
if (!state.mRegionToDraw.IsEmpty() && !ClientManager()->GetPaintedLayerCallback()) {
|
||||
ClientManager()->SetTransactionIncomplete();
|
||||
mContentClient->EndPaint(nullptr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ ContentClientRemoteBuffer::EndPaint(nsTArray<ReadbackProcessor::Update>* aReadba
|
||||
mOldTextures.Clear();
|
||||
|
||||
if (mTextureClient && mTextureClient->IsLocked()) {
|
||||
if (aReadbackUpdates->Length() > 0) {
|
||||
if (aReadbackUpdates && aReadbackUpdates->Length() > 0) {
|
||||
RefPtr<TextureReadbackSink> readbackSink = new RemoteBufferReadbackProcessor(aReadbackUpdates, mBufferRect, mBufferRotation);
|
||||
|
||||
mTextureClient->SetReadbackSink(readbackSink);
|
||||
|
Loading…
Reference in New Issue
Block a user