Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'map/basic_tiling_render_policy.cpp')
-rw-r--r--map/basic_tiling_render_policy.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/map/basic_tiling_render_policy.cpp b/map/basic_tiling_render_policy.cpp
index f3c448089a..f8a8a23cb2 100644
--- a/map/basic_tiling_render_policy.cpp
+++ b/map/basic_tiling_render_policy.cpp
@@ -118,8 +118,6 @@ void BasicTilingRenderPolicy::DrawFrame(shared_ptr<PaintEvent> const & e, Screen
if (curCvg)
{
- SetOverlay(curCvg->GetOverlay());
-
curCvg->Draw(pDrawer->screen().get(), s);
m_DrawScale = curCvg->GetDrawScale();
@@ -255,6 +253,21 @@ size_t BasicTilingRenderPolicy::TileSize() const
return m_TileSize;
}
+void BasicTilingRenderPolicy::FrameLock()
+{
+ m_CoverageGenerator->Mutex().Lock();
+}
+
+void BasicTilingRenderPolicy::FrameUnlock()
+{
+ m_CoverageGenerator->Mutex().Unlock();
+}
+
+shared_ptr<graphics::Overlay> const BasicTilingRenderPolicy::FrameOverlay() const
+{
+ return m_CoverageGenerator->CurrentCoverage()->GetOverlay();
+}
+
int BasicTilingRenderPolicy::InsertBenchmarkFence()
{
return m_CoverageGenerator->InsertBenchmarkFence();