hide Thread<> and separate the Implementation object

This commit is contained in:
Konstantin Käfer
2015-04-13 17:57:45 +02:00
parent 278e6bd556
commit 16849a341b
33 changed files with 196 additions and 206 deletions

View File

@@ -58,8 +58,8 @@ void log_gl_string(GLenum name, const char *label) {
NativeMapView::NativeMapView(JNIEnv *env, jobject obj_)
: mbgl::View(*this),
fileCache(mbgl::android::cachePath + "/mbgl-cache.db"),
fileSource(fileCache),
map(*this, *fileSource) {
fileSource(&fileCache),
map(*this, fileSource) {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::NativeMapView");
assert(env != nullptr);
@@ -145,7 +145,7 @@ void NativeMapView::notify() {
mbgl::Map &NativeMapView::getMap() { return map; }
mbgl::DefaultFileSource &NativeMapView::getFileSource() { return *fileSource; }
mbgl::DefaultFileSource &NativeMapView::getFileSource() { return fileSource; }
bool NativeMapView::inEmulator() {
// Detect if we are in emulator