mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Ignore container layer batches that don't have an intermediate surface. (bug 1377936, r=mattwoodrow)
This commit is contained in:
parent
f914e078f9
commit
2c24b3d088
@ -348,6 +348,10 @@ ShaderRenderPass::SetupPSBuffer0(float aOpacity)
|
||||
void
|
||||
ShaderRenderPass::ExecuteRendering()
|
||||
{
|
||||
if (mVertices.IsEmpty() && mInstances.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
mDevice->SetPSConstantBuffer(0, &mPSBuffer0);
|
||||
if (MaskOperation* mask = GetMask()) {
|
||||
mDevice->SetPSTexture(kMaskLayerTextureSlot, mask->GetTexture());
|
||||
@ -881,6 +885,10 @@ RenderViewPass::AddToPass(LayerMLGPU* aLayer, ItemInfo& aInfo)
|
||||
}
|
||||
|
||||
mSource = mAssignedLayer->GetRenderTarget();
|
||||
if (!mSource) {
|
||||
return false;
|
||||
}
|
||||
|
||||
mParentView = aInfo.view;
|
||||
|
||||
Txn txn(this);
|
||||
|
Loading…
Reference in New Issue
Block a user