MCPcopy Create free account
hub / github.com/comaps/comaps / ClearContextDependentResources

Method ClearContextDependentResources

libs/drape_frontend/route_renderer.cpp:733–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void RouteRenderer::ClearContextDependentResources()
734{
735 // Here we clear only context-dependent part of subroute data.
736 for (auto & subroute : m_subroutes)
737 {
738 subroute.m_subrouteData.clear();
739 subroute.m_markersData.reset();
740 subroute.m_arrowsData.reset();
741 subroute.m_arrowBorders.clear();
742 }
743
744 m_previewRenderData.clear();
745 m_previewHandlesCache.clear();
746 m_waitForPreviewRenderData = false;
747}
748
749void RouteRenderer::UpdateDistanceFromBegin(double distanceFromBegin)
750{

Callers 4

OnContextDestroyMethod · 0.45
AcceptMessageMethod · 0.45
OnContextDestroyMethod · 0.45

Calls 2

clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected