mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 759866. Crash more aggressively if we aren't going to be able to paint. r=bgirard
This should make it easier to get an idea how common these kinds of failures are. --HG-- extra : rebase_source : c5c029ebfe723fc4d32d604528beb1769c21d98c
This commit is contained in:
parent
e6f4f0a5a9
commit
633fcc1dfd
@ -169,6 +169,11 @@ LayerManagerOGL::Initialize(nsRefPtr<GLContext> aContext, bool force)
|
||||
// Do not allow double initialization
|
||||
NS_ABORT_IF_FALSE(mGLContext == nsnull, "Don't reinitialize layer managers");
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
if (!aContext)
|
||||
NS_RUNTIMEABORT("We need a context on Android");
|
||||
#endif
|
||||
|
||||
if (!aContext)
|
||||
return false;
|
||||
|
||||
|
@ -899,7 +899,8 @@ void nsBaseWidget::CreateCompositor()
|
||||
|
||||
mLayerManager = lm;
|
||||
} else {
|
||||
NS_WARNING("fail to construct LayersChild");
|
||||
// We don't currently want to support not having a LayersChild
|
||||
NS_RUNTIMEABORT("failed to construct LayersChild");
|
||||
delete lm;
|
||||
mCompositorChild = nsnull;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user