Ignore container layer batches that don't have an intermediate surface. (bug 1377936, r=mattwoodrow)

This commit is contained in:
David Anderson 2017-07-05 15:39:46 -07:00
parent f914e078f9
commit 2c24b3d088

View File

@ -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);