Drawable LayerGroup sorting, depth buffer, split view (#1173)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mwilsnd
2023-05-25 15:32:21 -05:00
committed by Bart Louwers
parent 1c8304a609
commit f63fa49152
17 changed files with 244 additions and 89 deletions

View File

@@ -9,6 +9,7 @@
namespace mbgl {
class ChangeRequest;
class LayerGroup;
class TileLayerGroup;
class RenderOrchestrator;
using ChangeRequestPtr = std::shared_ptr<ChangeRequest>;
@@ -76,4 +77,16 @@ protected:
int32_t layerIndex;
};
class UpdateLayerGroupIndexRequest : public ChangeRequest {
public:
UpdateLayerGroupIndexRequest(std::shared_ptr<TileLayerGroup> tileLayerGroup_, int32_t newLayerIndex_);
UpdateLayerGroupIndexRequest(const UpdateLayerGroupIndexRequest &) = delete;
void execute(RenderOrchestrator &) override;
protected:
std::shared_ptr<TileLayerGroup> tileLayerGroup;
int32_t newLayerIndex;
};
} // namespace mbgl

View File

@@ -76,6 +76,7 @@ public:
TileLayerGroup(int32_t layerIndex, std::size_t initialCapacity);
~TileLayerGroup() override;
void updateLayerIndex(int32_t newLayerIndex);
std::size_t getDrawableCount() const;
const gfx::UniqueDrawable& getDrawable(mbgl::RenderPass, const OverscaledTileID&) const;