From a876c965a55213f38b91303c81239fbda0a9f7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 16 Aug 2019 12:03:53 +0200 Subject: [core] Store SegmentVectors in ephemeral render objects We used some shared SegmentVectors, e.g. for drawing raster or background tiles. In longer running maps, this lead to resource accumulation. By storing the SegmentVectors and the contained gfx::DrawScope objects, we ensure that resources get released when the associated render objects vanish. --- src/mbgl/util/id.cpp | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/mbgl/util/id.cpp (limited to 'src/mbgl/util/id.cpp') diff --git a/src/mbgl/util/id.cpp b/src/mbgl/util/id.cpp deleted file mode 100644 index 4486194de4..0000000000 --- a/src/mbgl/util/id.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include - -#include - -namespace mbgl { -namespace util { - -uint64_t nextID() { - static std::atomic GUID { 0 }; - return GUID++; -} - -} // namespace util -} // namespace mbgl -- cgit v1.2.1