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:
Jeff Muizelaar 2012-05-31 17:51:52 -04:00
parent e6f4f0a5a9
commit 633fcc1dfd
2 changed files with 7 additions and 1 deletions

View File

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

View File

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