#pragma once #include #include #include #include #include namespace mbgl { namespace algorithm { class ClipIDGenerator { private: struct Leaf { Leaf(ClipID&); void add(const CanonicalTileID &p); bool operator==(const Leaf &other) const; std::set children; ClipID& clip; }; uint8_t bit_offset = 0; std::multimap pool; public: template void update(std::vector> renderables); std::map getClipIDs() const; }; } // namespace algorithm } // namespace mbgl