Bug 963550 - Warn about OpenGL non-support only once during execution instead of spamming the log. r=bjacob

This commit is contained in:
ISHIKAWA, Chiaki 2014-01-27 15:40:50 -05:00
parent 9af64fcc37
commit 73913f9880

View File

@ -895,7 +895,11 @@ nsBaseWidget::ComputeShouldAccelerate(bool aDefault)
return true;
if (!whitelisted) {
NS_WARNING("OpenGL-accelerated layers are not supported on this system");
static int tell_me_once = 0;
if (!tell_me_once) {
NS_WARNING("OpenGL-accelerated layers are not supported on this system");
tell_me_once = 1;
}
#ifdef MOZ_ANDROID_OMTC
NS_RUNTIMEABORT("OpenGL-accelerated layers are a hard requirement on this platform. "
"Cannot continue without support for them");