diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-25 17:03:52 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-04-02 11:50:52 +0300 |
commit | 5f4e33b1a3d14cdbebbfe724e51bdcba11f44437 (patch) | |
tree | 1c0d6fee60ad678f398196d2a7d7d47ab0ca167b /src/mbgl/renderer/render_orchestrator.hpp | |
parent | 4bdb3ce200e1b6c7d1838d6ebabf18debd331e04 (diff) | |
download | qtlocation-mapboxgl-5f4e33b1a3d14cdbebbfe724e51bdcba11f44437.tar.gz |
[core] Introduce API to collect placed symbols data
The following methods are added to the `Renderer` class:
- `collectPlacedSymbolData()`
enables or disables collecting of the placed symbols data
- `getPlacedSymbolsData()`
if collecting of the placed symbols data is enabled, returns the
reference to the `PlacedSymbolData` vector holding the collected data.
Diffstat (limited to 'src/mbgl/renderer/render_orchestrator.hpp')
-rw-r--r-- | src/mbgl/renderer/render_orchestrator.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_orchestrator.hpp b/src/mbgl/renderer/render_orchestrator.hpp index 19632c3218..08904e7e5a 100644 --- a/src/mbgl/renderer/render_orchestrator.hpp +++ b/src/mbgl/renderer/render_orchestrator.hpp @@ -72,6 +72,8 @@ public: void reduceMemoryUse(); void dumpDebugLogs(); + void collectPlacedSymbolData(bool); + const std::vector<PlacedSymbolData>& getPlacedSymbolsData() const; void clearData(); private: @@ -124,6 +126,7 @@ private: const bool backgroundLayerAsColor; bool contextLost = false; + bool placedSymbolDataCollected = false; // Vectors with reserved capacity of layerImpls->size() to avoid reallocation // on each frame. |