diff options
author | Leith Bade <leith@mapbox.com> | 2015-01-22 23:47:09 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-01-22 23:47:09 +1100 |
commit | 95e653982dd2c3200f85d2e7915c7f38b3ca50f4 (patch) | |
tree | ecb223ba86d0ea4ebbd71bf7603ed5b5993c4a77 /include | |
parent | 6ae8249ede61444e8efce57b0c8d807c7bf40dfc (diff) | |
download | qtlocation-mapboxgl-95e653982dd2c3200f85d2e7915c7f38b3ca50f4.tar.gz |
Throw on egl errors
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/android/native_map_view.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp index fae21212ca..8641d277bd 100644 --- a/include/mbgl/android/native_map_view.hpp +++ b/include/mbgl/android/native_map_view.hpp @@ -30,13 +30,13 @@ public: mbgl::Map &getMap(); mbgl::CachingHTTPFileSource &getFileSource(); - bool initializeDisplay(); + void initializeDisplay(); void terminateDisplay(); - bool initializeContext(); + void initializeContext(); void terminateContext(); - bool createSurface(ANativeWindow *window); + void createSurface(ANativeWindow *window); void destroySurface(); void start(); @@ -53,6 +53,8 @@ private: void loadExtensions(); + bool inEmulator(); + private: JavaVM *vm = nullptr; jobject obj = nullptr; |