Rename OpenGL event to GraphicsBackend (#4515)

This commit is contained in:
Akash Mohan Chaudhary
2026-09-07 02:32:21 +05:30
committed by GitHub
parent a33d3f00fb
commit 042f21da5c
12 changed files with 43 additions and 42 deletions

View File

@@ -98,7 +98,7 @@ void Debugging::DebugCallback(GLenum source,
}
const std::string logMsg = "GL_" + strSource + " GL_" + strType + " " + std::to_string(id) + " GL_" + strSeverity +
" - " + message;
mln::Log::Record(evtSeverity, mln::Event::OpenGL, logMsg);
mln::Log::Record(evtSeverity, mln::Event::GraphicsBackend, logMsg);
}
} // namespace extension

View File

@@ -9,7 +9,7 @@ namespace platform {
#ifndef NDEBUG
void glCheckError(const char* cmd, const char* file, int line) {
if (GLenum err = glGetError()) {
Log::Warning(Event::OpenGL,
Log::Warning(Event::GraphicsBackend,
"Error" + std::to_string(err) + ": " + cmd + " - " + file + ":" + std::to_string(line));
}
}

View File

@@ -95,7 +95,7 @@ void RenderLayer::checkRenderability(const PaintParameters& parameters, const ui
}
if (activeBindingCount > parameters.context.maximumVertexBindingCount) {
Log::Error(Event::OpenGL,
Log::Error(Event::GraphicsBackend,
"The layer '" + getID() +
"' uses more data-driven properties than the current device "
"supports, and will have rendering errors. To ensure "
@@ -105,7 +105,7 @@ void RenderLayer::checkRenderability(const PaintParameters& parameters, const ui
" fewer data driven properties in this layer.");
hasRenderFailures = true;
} else if (activeBindingCount > gfx::Context::minimumRequiredVertexBindingCount) {
Log::Warning(Event::OpenGL,
Log::Warning(Event::GraphicsBackend,
"The layer '" + getID() +
"' uses more data-driven properties than some devices may "
"support. "

View File

@@ -121,7 +121,7 @@ public:
gl::AttributeKey<AttributeList>::defines(attributeBindings)))
.first;
} catch (const std::runtime_error& e) {
Log::Error(Event::OpenGL, e.what());
Log::Error(Event::GraphicsBackend, e.what());
failedInstances.insert(key);
return false;
}

View File

@@ -25,7 +25,7 @@ MBGL_DEFINE_ENUM(Event,
{Event::HttpRequest, "HttpRequest"},
{Event::Sprite, "Sprite"},
{Event::Image, "Image"},
{Event::OpenGL, "OpenGL"},
{Event::GraphicsBackend, "GraphicsBackend"},
{Event::JNI, "JNI"},
{Event::Android, "Android"},
{Event::Crash, "Crash"},