Add GuaranteePersistence to PushLayer in DrawTargetCapture. (bug 1447144, r=bas)

--HG--
extra : amend_source : 4492b72ad9e306aeefadddd970b0e997de386239
This commit is contained in:
Ryan Hunt 2018-03-19 13:32:12 -05:00
parent 70a0c81b98
commit 12792a2bc5

View File

@ -290,6 +290,10 @@ DrawTargetCaptureImpl::PushLayer(bool aOpaque,
mPushedLayers.push_back(layer);
DrawTarget::SetPermitSubpixelAA(aOpaque);
if (aMask) {
aMask->GuaranteePersistance();
}
AppendCommand(PushLayerCommand)(aOpaque,
aOpacity,
aMask,