Bug 1536668 - Add more check to RecvGetTextureFactoryIdentifier() r=nical

Add a check similar to LayerTransactionParent::RecvSetAsyncZoom()

Differential Revision: https://phabricator.services.mozilla.com/D30308

--HG--
extra : moz-landing-system : lando
This commit is contained in:
sotaro 2019-05-09 07:37:03 +00:00
parent 30138cb347
commit d340b3064c

View File

@ -1031,7 +1031,7 @@ mozilla::ipc::IPCResult LayerTransactionParent::RecvRecordPaintTimes(
mozilla::ipc::IPCResult LayerTransactionParent::RecvGetTextureFactoryIdentifier(
TextureFactoryIdentifier* aIdentifier) {
if (!mLayerManager) {
if (mDestroyed || !mLayerManager || mLayerManager->IsDestroyed()) {
// Default constructor sets mParentBackend to LAYERS_NONE.
return IPC_OK();
}