update linux-ci to Ubuntu 24.04, apply clang-tidy fixes (#3998)
This commit is contained in:
@@ -1794,17 +1794,19 @@ TEST(Map, ObserveTileLifecycle) {
|
||||
StubMapObserver observer;
|
||||
observer.onTileActionCallback = [&](TileOperation op, const OverscaledTileID& id, const std::string& sourceID) {
|
||||
if (sourceID != "mapbox") return;
|
||||
std::lock_guard<std::mutex> lock(tileMutex);
|
||||
tileOps.push_back(TileEntry{id, sourceID, op});
|
||||
std::scoped_lock lock(tileMutex);
|
||||
tileOps.push_back(TileEntry{.id = id, .sourceID = sourceID, .op = op});
|
||||
};
|
||||
observer.onPreCompileShaderCallback = [&](shaders::BuiltIn id,
|
||||
gfx::Backend::Type type,
|
||||
const std::string& additionalDefines) {
|
||||
shaderOps.push_back(ShaderEntry{.id = id, .type = type, .defines = additionalDefines, .isPostCompile = false});
|
||||
};
|
||||
observer.onPostCompileShaderCallback = [&](shaders::BuiltIn id,
|
||||
gfx::Backend::Type type,
|
||||
const std::string& additionalDefines) {
|
||||
shaderOps.push_back(ShaderEntry{.id = id, .type = type, .defines = additionalDefines, .isPostCompile = true});
|
||||
};
|
||||
observer.onPreCompileShaderCallback =
|
||||
[&](shaders::BuiltIn id, gfx::Backend::Type type, const std::string& additionalDefines) {
|
||||
shaderOps.push_back(ShaderEntry{id, type, additionalDefines, false});
|
||||
};
|
||||
observer.onPostCompileShaderCallback =
|
||||
[&](shaders::BuiltIn id, gfx::Backend::Type type, const std::string& additionalDefines) {
|
||||
shaderOps.push_back(ShaderEntry{id, type, additionalDefines, true});
|
||||
};
|
||||
|
||||
HeadlessFrontend frontend{{512, 512}, 1};
|
||||
MapAdapter map(
|
||||
|
||||
Reference in New Issue
Block a user