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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user