[android] map snapshots

This commit is contained in:
Ivo van Dongen
2017-09-18 11:31:45 +03:00
committed by Ivo van Dongen
parent 8182b26dfe
commit c17be060fd
7 changed files with 49 additions and 32 deletions

View File

@@ -6,7 +6,6 @@
#include <mbgl/storage/file_source.hpp>
#include <mbgl/util/thread.hpp>
#include <mbgl/util/run_loop.hpp>
#include <mbgl/util/logging.hpp>
#include "android_renderer_backend.hpp"
@@ -113,14 +112,6 @@ AnnotationIDs AndroidRendererFrontend::queryPointAnnotations(const ScreenBox& bo
return mapRenderer.actor().ask(&Renderer::queryPointAnnotations, box).get();
}
void AndroidRendererFrontend::requestSnapshot(SnapshotCallback callback_) {
snapshotCallback = std::make_unique<SnapshotCallback>([callback=std::move(callback_), runloop=util::RunLoop::Get()](PremultipliedImage image){
runloop->invoke([&]() {
callback(std::move(image));
});
});
}
} // namespace android
} // namespace mbgl