blob: e1c338899dac43f1c198a5c4e57ec629d1905804 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "drape_frontend/threads_commutator.hpp"
#include "drape/pointers.hpp"
namespace df
{
class Message;
class MapShape;
struct TileKey;
class EngineContext
{
public:
EngineContext(dp::RefPointer<ThreadsCommutator> commutator);
void BeginReadTile(TileKey const & key);
/// If you call this method, you may forget about shape.
/// It will be proccessed and delete later
void InsertShape(TileKey const & key, dp::TransferPointer<MapShape> shape);
void EndReadTile(TileKey const & key);
private:
void PostMessage(Message * message);
private:
dp::RefPointer<ThreadsCommutator> m_commutator;
};
} // namespace df
|