summaryrefslogtreecommitdiff
path: root/platform/default
Commit message (Collapse)AuthorAgeFilesLines
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-121-28/+22
| | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
* [build] split out DefaultFileSource and dependents to a separate targetKonstantin Käfer2017-09-282-0/+68
| | | | We don't want to link it into the node bindings, so keep it in a separate target
* [core] fix loading of stale must-revalidate resourcesKonstantin Käfer2017-09-251-9/+15
| | | | | | In https://github.com/mapbox/mapbox-gl-native/pull/9670, we implemented support for the Cache-Control: must-revalidate header. While we now respect this header and don't show resources that are stale and have this header set, the optional cache request never completes. This means we're also never going to try to actually get a fresh tile and just never show this tile anymore. This commit fixes this by responding with a Not Found error when the resource is unusable (= stale and has must-revalidate set). Since we actually still have the data (but can't use it due to caching rules), we're responding with the data as well. To avoid a second cache hit, tile_loader_impl.hpp now passes on the data from the Optional to the Required request so that it can be reused when we get a 304 Not Modified response from the server.
* [test] add ability to take the OnlineFileSource offlineKonstantin Käfer2017-09-222-4/+35
| | | | This functionality is used for testing to ensure correct offline behavior when connectivity is missing.
* Preserve depth buffer between 3D layers + optimize render order (#9931)Lauren Budorick2017-09-212-0/+5
| | | Port of https://github.com/mapbox/mapbox-gl-js/pull/5101: adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
* Fix platform dependent number type `unsigned long` -> `uint64_t`Asheem Mamoowala2017-09-201-1/+1
|
* Fast tileCount with help from @mapbox/sphericalmercator moduleAsheem Mamoowala2017-09-082-10/+27
|
* [default] map snapshotterIvo van Dongen2017-08-302-0/+116
|
* [default] headless_frontend - support program cache dirIvo van Dongen2017-08-302-6/+7
|
* [core] initialize OfflineDatabase asynchronously in DefaultFileSourceKonstantin Käfer2017-08-281-13/+18
| | | | Sometimes, initialization can take hundreds of milliseconds, in particular when the database doesn't exist yet, or when the app/device is doing a lot of I/O already. Instead of synchronously initializing the OfflineDatabase objects, we're now asynchronously initializing the object through a self-sent message that by virtue of being the first message for this actor guarantees that the object is there when it's needed by other member functions.
* [core] Remove database on schema downgradeThiago Marcos P. Santos2017-08-221-1/+1
| | | | Previously we were throwing an exception.
* [all] ensure runloop is the current schedulerIvo van Dongen2017-08-091-7/+6
|
* [default] use the current scheduler in the online file sourceIvo van Dongen2017-08-091-1/+1
|
* [core] current schedulerIvo van Dongen2017-08-091-1/+1
| | | | - Adds a way to set the current scheduler on the thread to be used whenever a mailbox is created that needs to reply on this thread
* [core] fix shadowing argument on apple clangIvo van Dongen2017-08-091-3/+3
|
* [core] finish must-revalidate supportKonstantin Käfer2017-08-088-87/+138
|
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-262-3/+2
|
* [node, tests] Consolidate headless rendering logic in HeadlessFrontendJohn Firebaugh2017-07-268-173/+183
|
* [default] manage backendscope in renderer frontendIvo van Dongen2017-07-253-4/+8
|
* [test] allow only a single shared display to avoid egl errorsIvo van Dongen2017-07-183-6/+15
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-183-4/+4
|
* [core] renderer interfaceIvo van Dongen2017-07-184-7/+74
|
* [core] Make sure ThreadLocal will not own the pointer it is managingThiago Marcos P. Santos2017-07-141-1/+5
| | | | | | | | | | | | | | ThreadLocal should not own the pointer it is managing because the use case in Mapbox GL is to keep a pointer to a stack allocated object, like: ``` MyObject foo; threadLocal.set(&foo); ``` To keep consistency, it is required that we clear the managed object before ThreadLocal gets destroyed by setting it to `nullptr`.
* [core] fix undefined access for HTTP responses that don't contain a bodyKonstantin Käfer2017-07-131-2/+2
|
* [all] make default_styles header-onlyKonstantin Käfer2017-07-132-26/+8
|
* [core] GCC 4.9 does not provide <codecvt>Bruno de Oliveira Abinader2017-07-121-0/+10
|
* [core] GCC 4.9 shadow member warningsBruno de Oliveira Abinader2017-07-121-2/+2
|
* [core] Do not use S_ISDIRThiago Marcos P. Santos2017-07-121-2/+1
| | | | Seems like Windows can do `stat()` but not S_ISDIR.
* [core] Isolate pthread-based tls implementationThiago Marcos P. Santos2017-07-071-0/+62
|
* Merge branch 'release-ios-v3.6.0-android-v5.1.0'Tobrun2017-07-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # .travis.yml # circle.yml # cmake/core-files.cmake # include/mbgl/style/function/composite_function.hpp # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/constants/MyBearingTracking.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/constants/MyLocationTracking.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationSource.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/TrackingSettings.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/Light.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/Position.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/light/light.java.ejs # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/LightTest.java # platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/light.junit.ejs # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/camera/CameraPositionActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MockLocationEngine.java # platform/android/dependencies.gradle # platform/android/src/native_map_view.cpp # platform/darwin/scripts/generate-style-code.js # platform/darwin/src/MGLGeometry_Private.h # platform/darwin/src/MGLLight.h # platform/darwin/src/MGLLight.mm # platform/darwin/src/MGLSource.h # platform/darwin/src/MGLStyle.h # platform/darwin/src/MGLStyle.mm # platform/darwin/test/MGLLightTest.mm # platform/default/default_file_source.cpp # platform/ios/CHANGELOG.md # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/ios/resources/Images.xcassets/default_marker.imageset/default_marker.pdf # platform/macos/CHANGELOG.md # scripts/generate-shaders.js # src/mbgl/layout/symbol_layout.cpp # src/mbgl/programs/program.hpp # src/mbgl/programs/symbol_program.hpp # src/mbgl/programs/uniforms.hpp # src/mbgl/renderer/frame_history.cpp # src/mbgl/renderer/paint_property_binder.hpp # src/mbgl/shaders/line.cpp # src/mbgl/shaders/line_pattern.cpp # src/mbgl/shaders/line_sdf.cpp # src/mbgl/sprite/sprite_atlas.hpp # src/mbgl/style/layers/line_layer_properties.hpp # src/mbgl/style/sources/geojson_source.cpp # src/mbgl/style/style.cpp # src/mbgl/text/glyph_atlas.hpp # src/mbgl/tile/geometry_tile.cpp # src/mbgl/tile/geometry_tile.hpp # test/style/style.test.cpp
| * [ios, macos] Fix size and color of default marker imageJason Wray2017-06-261-1/+1
| |
| * [android] Release android-v5.1.0-beta.2 (#8976)Tobrun2017-05-121-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [android] url getter on sources * [android] fix ui test filter in makefile * [android] - build SNAPSHOT from release branch (#8958) * [android] - update changelog for 5.1.0-beta.2 * [android] - bump version number * [android] - Camera change listener v2.0 * [core] allow filesource url transform reset * [android] Update attribution wordmark (#8774) * Update wordmark on android * Moved attribution i icon to the right of mapbox word (in mapview preview image) * update padding and margin * [android] update hardcoded branch name * revert version to 5.1.0-SNAPSHOT
| * [core, android, ios, macos] Added Traffic Day/Night to default stylesMinh Nguyễn2017-05-122-0/+5
| | | | | | | | | | | | | | | | The Styles API section of the Mapbox API Documentation site now lists Traffic Day v2 and Traffic Night v2, so this change adds those styles to all the places where styles are listed. Also switched iosapp and macosapp to unversioned style factory methods since MGLStyleDefaultVersion is no longer applicable for all styles. Cherry-picked from 4d6f54553d277c0af24a0b8ff03d2dd7e9284ca2.
| * [ios, macos] Undeprecated unversioned style URL factory methodsMinh Nguyễn2017-05-122-8/+7
| | | | | | | | | | | | | | | | Undeprecated the unversioned style URL factory methods in MGLStyle for consistency with the Android and Qt SDKs. Added warnings about using them with the runtime styling API. Refactored mbgl::util::default_styles to track different versions for different styles. Cherry-picked from 9e384b78fbcf46d66d390122eefdf273f91b314e.
| * [core, android, ios, macos, qt] v10 default stylesMinh Nguyễn2017-05-122-7/+7
| | | | | | | | | | | | Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL. Cherry-picked from ed54849e9909e7f7cd8724b39b2bc94f16cf9a11.
* | [core] Use the ResourceTransform instead of callbacksThiago Marcos P. Santos2017-06-262-23/+35
| | | | | | | | | | Based on the actor model, can be considered safer to use since we don't need to worry about object lifetime anymore.
* | [core] Rename ThreadedObject to ThreadThiago Marcos P. Santos2017-06-213-6/+6
| | | | | | | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name.
* | [core] Remove util::ThreadThiago Marcos P. Santos2017-06-211-1/+0
| | | | | | | | Fixes #6425
* | [core] Convert LocalFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-5/+12
| |
* | [core] Convert AssetFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-8/+11
| |
* | [core] Convert DefaultFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-34/+29
| | | | | | | | Fixes #6426
* | [core] Added Backend::{assume,set}ScissorTestBruno de Oliveira Abinader2017-06-131-0/+1
| |
* | [core] Use fixed-size std::array for ImageSource coordinatesAsheem Mamoowala2017-06-011-4/+4
| |
* | [core] Offline support for Image SourcesAsheem Mamoowala2017-06-012-7/+23
| |
* | [core] Add ImageSource support to style parsersAsheem Mamoowala2017-06-011-0/+2
| |
* | [core] default file source - ensure thread safety for cached valuesIvo van Dongen2017-05-271-4/+14
| |
* | [core] default file source - ensure thread safety for local file and asset ↵Ivo van Dongen2017-05-271-38/+46
| | | | | | | | requests
* | [core] Immutable ImplsJohn Firebaugh2017-05-121-22/+35
| |
* | [tidy] modernize-use-equals-defaultBruno de Oliveira Abinader2017-05-123-7/+4
| |
* | [tidy] modernize-use-nullptrBruno de Oliveira Abinader2017-05-121-3/+3
| |