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

Method RecoverSurface

libs/drape_frontend/drape_engine.cpp:143–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void DrapeEngine::RecoverSurface(int w, int h, bool recreateContextDependentResources)
144{
145 if (m_choosePositionMode)
146 {
147 m_threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
148 make_unique_dp<ShowChoosePositionMarkMessage>(), MessagePriority::Normal);
149 }
150
151 if (recreateContextDependentResources)
152 {
153 RecacheGui(false);
154 RecacheMapShapes();
155 m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread,
156 make_unique_dp<RecoverContextDependentResourcesMessage>(), MessagePriority::Normal);
157 }
158
159 ResizeImpl(w, h);
160}
161
162void DrapeEngine::Resize(int w, int h)
163{

Callers 1

OnRecoverSurfaceMethod · 0.80

Calls 1

PostMessageMethod · 0.45

Tested by

no test coverage detected