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

engine_context.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 875717d7f90e4f8ca09fc28570f18a68340382ab (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 "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