Allow painted layers with ancestor mask layers to use OMTP (bug 1419586, r=dvander)

MozReview-Commit-ID: 1Ru3lxaKUbl

--HG--
extra : rebase_source : df2fc3ecf68f8792945e4a3b72c23b7c9cfcc6fe
This commit is contained in:
Ryan Hunt 2017-11-21 19:22:27 -05:00
parent 0f97b1bbce
commit 96a3a743e2

View File

@ -66,13 +66,7 @@ ClientPaintedLayer::CanRecordLayer(ReadbackProcessor* aReadback)
return false;
}
// If we have mask layers, we have to render those first
// In this case, don't record for now.
if (GetMaskLayer()) {
return false;
}
return GetAncestorMaskLayerCount() == 0;
return true;
}
void