Bug 1276732 - Report the GLContext error to WebGL for telemetry. r=jrmuizel

MozReview-Commit-ID: 24eb4FXMOiI
This commit is contained in:
Benoit Girard
2016-06-06 16:52:42 -04:00
parent 70ed486797
commit fa721f31b7
16 changed files with 127 additions and 58 deletions

View File

@@ -92,7 +92,8 @@ static RefPtr<GLContext> sPluginContext = nullptr;
static bool EnsureGLContext()
{
if (!sPluginContext) {
sPluginContext = GLContextProvider::CreateHeadless(CreateContextFlags::REQUIRE_COMPAT_PROFILE);
nsCString failureId;
sPluginContext = GLContextProvider::CreateHeadless(CreateContextFlags::REQUIRE_COMPAT_PROFILE, failureId);
}
return sPluginContext != nullptr;