summaryrefslogtreecommitdiff
path: root/src/mbgl/platform
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Add global settings objectAlexander Shalamov2020-02-061-0/+58
|
* [core] Abstract the OpenGL implementationThiago Marcos P. Santos2019-02-121-0/+17
| | | | | | | | | | | The platform will be responsible to load the OpenGL implementation and give the function pointers to Mapbox GL Core. The platform might load OpenGL by linking against some OpenGL implementation, load it dynamically, etc. It doesn't matter as long as it is a valid implementation. Also adds the `::platform` namespace where all the missing symbols and interfaces expected to be implemented by the platforms will live.
* [build] move logging to utilKonstantin Käfer2016-11-222-101/+0
|
* [core] Move set/get thread names to platform::Thiago Marcos P. Santos2016-07-161-1/+1
| | | | Android needs its own implementation.
* [core] Factor out thread name setter/getterBruno de Oliveira Abinader2016-06-201-12/+2
|
* [core] Do not use pthread_getname_np before glibc 2.11Bruno de Oliveira Abinader2016-06-171-2/+8
| | | | Follows approach in src/mbgl/util/thread.hpp header.
* [core] Make enum ↔ string conversion more generic-friendlyJohn Firebaugh2016-06-132-1/+36
| | | | | | Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types. While there, properly validated enumerated property values.
* [core] Clean up ThreadContext vestigesJohn Firebaugh2016-04-151-3/+7
|
* [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-081-236/+0
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-032-4/+4
|
* VAO and extension tracking code.Adam Hunter2015-10-061-3/+38
|
* Fix up of some naming issues, etc.Adam Hunter2015-09-291-56/+56
|
* Added GL logging utilityAdam Hunter2015-09-291-0/+141
|
* don't use certain STL functionsKonstantin Käfer2015-08-042-1/+3
| | | | 
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
* Use ThreadContext data for loggingThiago Marcos P. Santos2015-06-251-11/+2
| | | | | | | Do not use the Environment anymore. The Environment ID is not really necessary anymore as we are forwarding exceptions to the main thread, so we always know which Map object triggered the error.
* Ensure call-once semantics inside InitializeExtensionsJohn Firebaugh2015-05-131-13/+19
|
* Extensible GL extension supportJohn Firebaugh2015-05-131-61/+17
|
* Remove unused GL feature flagsJohn Firebaugh2015-05-131-4/+0
| | | | These were used only for prerendered textures, which were removed.
* don't record Debug events to log observersKonstantin Käfer2015-04-171-1/+2
|
* make sqlite storage more resilient to sporadic errorsKonstantin Käfer2015-04-071-0/+6
| | | | | | | | - catch SQLite exceptions and report them - failed statements are ignored, we're really just caching here, so if it fails we're handling it gracefully elsewhere - handle cases where the database file goes away after we opened it - handle cases where the schema wasn't created after the database file was opened successfully - add tests
* Log the Environment ID and the Thread nameThiago Marcos P. Santos2015-03-181-1/+25
| | | | | | | | | | | | | | | | | | | To make it easier to debug, add the Environment ID and the Thread name to the log messages. For instance log messages from the TileParser will look like: [WARNING] {0}{TileWorker_15/18653/9486}[ParseTile]: some relevant warning message | | | | | | | +-> Component | | +--------------------> Thread name | +----------------------------------> Environment ID +------------------------------------------> Severity level Log messages that are not inside an Environment::Scope will work normally and will look like: [WARNING] [JNI]: some relevant warning message Fixes #882.
* Update the FixtureLogThiago Marcos P. Santos2015-03-121-0/+14
| | | | | | Now the FixtureLog is an Log::Observer instead of a backend. The observer can sniff and filter log messages, that can be used for fail a test if it emits a warning for example.
* Make the logging system staticThiago Marcos P. Santos2015-03-121-5/+7
| | | | | | | No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously).
* Simplify the logging mechanismThiago Marcos P. Santos2015-03-121-0/+20
| | | | | | | | | Move the implementation of the more specialized methods to the base class and let the platform implement only the most generic method that takes all the possible arguments. These specialized methods will then map to the generic implementation that must be provided by the platforms we support.
* Remove program binary cachingLeith Bade2015-01-271-4/+0
|
* Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-111-14/+16
|\ | | | | | | | | | | | | | | Conflicts: platform/default/glfw_view.cpp platform/default/headless_view.cpp src/mbgl/renderer/painter.cpp src/mbgl/renderer/prerendered_texture.cpp
| * only report STACK_OVERFLOW/STACK_UNDERFLOW when the GL implementation has themKonstantin Käfer2014-12-101-4/+7
| |
| * update error reporting functionKonstantin Käfer2014-12-101-11/+10
| |
| * Fix unused paramLeith Bade2014-12-101-1/+1
| |
| * Reduce GL log spewLeith Bade2014-12-101-1/+1
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-071-2/+4
|\ \ | |/ | | | | | | | | | | Conflicts: include/mbgl/platform/gl.hpp src/mbgl/platform/gl.cpp src/mbgl/shader/shader.cpp
| * Fix rebaseLeith Bade2014-12-061-0/+4
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-051-0/+6
|/ | | | | | | | | | | Conflicts: .gitignore gyp/mbgl-ios.gypi gyp/mbgl-linux.gypi gyp/mbgl-osx.gypi include/mbgl/map/map.hpp src/mbgl/map/map.cpp src/mbgl/storage/caching_http_file_source.cpp
* make most headers privateKonstantin Käfer2014-12-042-0/+102