summaryrefslogtreecommitdiff
path: root/platform/default
Commit message (Collapse)AuthorAgeFilesLines
* [ios, macos] Mark deprecated methods as unavailable (#11205)Jordan Kiley2018-02-161-3/+0
| | | Fixes #10735
* [core] factor out RunLoop::wake()Konstantin Käfer2018-02-061-5/+2
|
* [core] align implementations of local and asset file sourceKonstantin Käfer2018-01-253-26/+30
|
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-231-0/+13
|
* [windows][core] Define S_ISDIR when not definedThiago Marcos P. Santos2018-01-081-1/+4
|
* [core, macos, ios] Unit tests for LocalGlyphRasterizerChris Loer2017-12-112-6/+6
| | | | | | Core test uses stubbed "glyph.pbf" without Chinese glyphs Darwin test relies on locally available "PingFang" font. Android test relies on locally available "Droid" font. 'expected.png' is NOT correct b/c I haven't figured out how to run unit tests on Android yet.
* [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2017-12-111-0/+9
| | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
* [core] Enable local glyph generation using TinySDF.Chris Loer2017-12-111-0/+13
| | | | | | | - Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization. - Default platform implementation doesn't locally generate any glyphs -> no behavior change - Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs - Rename glyph_loader.test to glyph_manager.test
* [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-293-19/+26
|
* [core] fold HeadlessDisplay into the headless RenderBackend implementationKonstantin Käfer2017-11-295-74/+12
|
* [core, ios, qt, android] Close race condition in RunLoop (issue #9620)Chris Loer2017-11-271-2/+4
| | | | | Because a message we queue from the foreground may cause the background to complete, exit, and tear down the AsyncTask, we have to block queue processing until we've finished our call to AsyncTask::send(). Broadening the scope of a mutex is scary, but I audited the code of our four implementations of AsyncTask and I don't see any way this could cause a deadlock.
* [core] Custom Geometry SourcesAsheem Mamoowala2017-11-221-0/+2
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-1/+1
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Expose GLContextMode in HeadlessFrontendBruno de Oliveira Abinader2017-11-012-6/+7
|
* [core] map snapshotter - add attributions to snapshotter callbackIvo van Dongen2017-10-312-1/+14
|
* [default] map snapshotter - add function to get screen coordinate from ↵Ivo van Dongen2017-10-312-2/+23
| | | | | | latlng for snapshot - Wraps the TransformState for the snapshot so that the snapshotter itself is free to be re-used or destroyed
* [default] headless frontend - allow access to the transform stateIvo van Dongen2017-10-312-0/+13
|
* [android] map snapshotter - add mutatorsIvo van Dongen2017-10-311-0/+1
|
* [core] map snapshotter - add mutatorsIvo van Dongen2017-10-312-4/+98
|
* [core] Move SourceType to the 'style' namespaceAnand Thakker2017-10-162-4/+4
|
* [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