mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1145981 - Backout, missing review
This commit is contained in:
parent
2683def1bf
commit
8ff8e6ccf2
@ -145,12 +145,6 @@ DIBTextureHost::BindTextureSource(CompositableTextureSourceRef& aTexture)
|
||||
void
|
||||
DIBTextureHost::Updated(const nsIntRegion* aRegion)
|
||||
{
|
||||
if (!mCompositor) {
|
||||
// This can happen if we send textures to a compositable that isn't yet
|
||||
// attached to a layer.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mTextureSource) {
|
||||
mTextureSource = mCompositor->CreateDataTextureSource(mFlags);
|
||||
}
|
||||
|
@ -497,8 +497,10 @@ BufferTextureHost::Upload(nsIntRegion *aRegion)
|
||||
return false;
|
||||
}
|
||||
if (!mCompositor) {
|
||||
// This can happen if we send textures to a compositable that isn't yet
|
||||
// attached to a layer.
|
||||
NS_WARNING("Tried to upload without a compositor. Skipping texture upload...");
|
||||
// If we are in this situation it means we should have called SetCompositor
|
||||
// earlier. It is conceivable that on certain rare conditions with async-video
|
||||
// we may end up here for the first frame, but this should not happen repeatedly.
|
||||
return false;
|
||||
}
|
||||
if (mFormat == gfx::SurfaceFormat::UNKNOWN) {
|
||||
|
Loading…
Reference in New Issue
Block a user