Skip to content

Commit

Permalink
Fix merge, extra semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed Sep 3, 2024
1 parent 5c21aae commit b89a92b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/map/map_observer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MapObserver {
virtual bool onCanRemoveUnusedStyleImage(const std::string&) { return true; }
// Observe this event to easily mutate or observe shaders as soon
// as the registry becomes available.
virtual void onRegisterShaders(gfx::ShaderRegistry&) {};
virtual void onRegisterShaders(gfx::ShaderRegistry&) {}

// Shaders compilation
virtual void onPreCompileShader(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {}
Expand Down
6 changes: 3 additions & 3 deletions include/mbgl/renderer/renderer_observer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class RendererObserver {

// Entry point for custom shader registration
virtual void onRegisterShaders(gfx::ShaderRegistry&) {};
virtual void onPreCompileShader(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {};
virtual void onPostCompileShader(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {};
virtual void onShaderCompileFailed(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {};
virtual void onPreCompileShader(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {}
virtual void onPostCompileShader(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {}
virtual void onShaderCompileFailed(shaders::BuiltIn, gfx::Backend::Type, const std::string&) {}

// Glyph loading
virtual void onGlyphsLoaded(const FontStack&, const GlyphRange&) {}
Expand Down
8 changes: 8 additions & 0 deletions src/mbgl/tile/geometry_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ void GeometryTile::onLayout(std::shared_ptr<LayoutResult> result, const uint64_t

observer->onTileChanged(*this);

if (layoutResult) {
for (const auto& data : layoutResult->layerRenderData) {
if (data.second.bucket) {
data.second.bucket->check(SYM_GUARD_LOC);
}
}
}

if (!pending) {
observer->onTileAction(id, sourceID, TileOperation::EndParse);
}
Expand Down

0 comments on commit b89a92b

Please sign in to comment.