void ContentClientRemoteBuffer::EndPaint() { // XXX: We might still not have a texture client if PaintThebes // decided we didn't need one yet because the region to draw was empty. SetBufferProvider(nullptr); SetBufferProviderOnWhite(nullptr); mOldTextures.Clear(); if (mDeprecatedTextureClient) { mDeprecatedTextureClient->Unlock(); } if (mDeprecatedTextureClientOnWhite) { mDeprecatedTextureClientOnWhite->Unlock(); } }
void ContentClientRemoteBuffer::EndPaint() { // XXX: We might still not have a texture client if PaintThebes // decided we didn't need one yet because the region to draw was empty. SetBufferProvider(nullptr); SetBufferProviderOnWhite(nullptr); for (unsigned i = 0; i< mOldTextures.Length(); ++i) { if (mOldTextures[i]->IsLocked()) { mOldTextures[i]->Unlock(); } } mOldTextures.Clear(); if (mTextureClient && mTextureClient->IsLocked()) { mTextureClient->Unlock(); } if (mTextureClientOnWhite && mTextureClientOnWhite->IsLocked()) { mTextureClientOnWhite->Unlock(); } ContentClientRemote::EndPaint(); }