summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] GCC 4.9 does not fully support custom variable templatesBruno de Oliveira Abinader2017-07-122-13/+12
|
* [core] Use gmtime_s on WindowsThiago Marcos P. Santos2017-07-121-2/+9
| | | | gmtime_r is POSIX
* [core] Use std::to_string on WindowsThiago Marcos P. Santos2017-07-122-1/+14
| | | | Clang on Window's can't parse rapidjson's dtoa.
* [core] Prefer std:: functions over POSIXThiago Marcos P. Santos2017-07-121-4/+2
| | | | s/unlink/std::remove
* [core] add static asserts for more gl constantsAnsis Brammanis2017-07-114-6/+53
| | | | and rename BufferUsageType to BufferUsage
* [core] port pitch-label collision hackAnsis Brammanis2017-07-114-20/+50
| | | | https://github.com/mapbox/mapbox-gl-js/pull/4781/commits/81363951ed56c54f331ffc8d88e4e5079226a224
* [core] improve legibility of labels that follow linesAnsis Brammanis2017-07-1128-716/+714
| | | | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/4781 This improves legibility of labels that follow lines in pitched views. The previous approach used the limited information in the shader to calculate put the glyph in approximatelyright place. The new approach does this more accurately by doing it on the cpu where we have access to the entire line geometry.
* [core] fix transformMat4Ansis Brammanis2017-07-111-4/+5
| | | | | It used to overwrite values in the middle of the calculation which would cause problems when `out` and `a` were a reference to the same vector.
* [core] Hold on to tile yStretch value for rendering old symbolBuckets while ↵Chris Loer2017-07-112-2/+10
| | | | waiting for new ones.
* [core] Change OverscaledTileID to also include a "wrap" value.Chris Loer2017-07-113-26/+23
| | | | | This prevents TilePyramid from sharing wrapped copies of tiles. This is necessary because two wrapped tiles no longer share the same CollisionTile.
* [core] Limit symbol re-placement on changed tile distance to pitch > 25.Chris Loer2017-07-111-1/+7
|
* [core] Re-generate shaders.Chris Loer2017-07-113-89/+184
|
* [core] Use fade texture in collision debug boxes so that they agree more ↵Chris Loer2017-07-114-3/+5
| | | | closely with symbol shaders.
* [core] Set "max_camera_distance" to 1.5 for viewport-aligned road labels.Chris Loer2017-07-113-3/+19
| | | | Viewport-aligned curved labels start to look very strange in the distance. Until we have a better system for projecting them, just prevent them from showing.
* [core] Enable tile clipping for collision boxes.Chris Loer2017-07-111-1/+1
| | | | Necessary because collision boxes now change shape based on while tile they're part of.
* [core] Extend collision feature boxes to accommodate potential pitch-scaling.Chris Loer2017-07-111-8/+49
|
* [core] Pass pitch-scaling vertex attributes and uniforms to shaders.Chris Loer2017-07-119-21/+53
|
* [core] Improved label pitch-scaling: approximate collision box shapes based ↵Chris Loer2017-07-1111-25/+82
| | | | on tile distance from camera.
* [build] Don't use maybe-uninitialized and misleading-indentation in Clang, ↵Konstantin Käfer2017-07-112-0/+4
| | | | since they're not implemented there
* [core] Isolate pthread-based tls implementationThiago Marcos P. Santos2017-07-071-34/+10
|
* [core] Fix conditional unitialized jump on RenderGeoJSONSourceThiago Marcos P. Santos2017-07-071-1/+1
| | | | | | | | | | | | | | | | | | | ``` ==24942== Conditional jump or move depends on uninitialised value(s) ==24942== at 0x7D943D: mbgl::RenderGeoJSONSource::update(mbgl::Immutable<mbgl::style::Source::Impl>, std::vector<mbgl::Immutable<mbgl::style::Layer::Impl>, std::allocator<mbgl::Immutable<mbgl::style::Layer::Impl> > > const&, bool, bool, mbgl::TileParameters const&) (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x796445: mbgl::RenderStyle::update(mbgl::UpdateParameters const&) (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x77E29D: mbgl::Map::Impl::render(mbgl::View&) (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x77E559: mbgl::Map::Impl::renderStill() (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0xA39772: uv__async_event (async.c:98) ==24942== by 0xA398F8: uv__async_io (async.c:138) ==24942== by 0xA4375F: uv__io_poll (linux-core.c:380) ==24942== by 0xA3A1F2: uv_run (core.c:354) ==24942== by 0x61BADC: API_ZoomHistory_Test::TestBody() (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x89FDE9: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x885450: testing::Test::Run() (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== by 0x88642F: testing::TestInfo::Run() (in /home/tmpsantos/Projects/mapbox-gl-native/build/linux-x86_64/Release/mbgl-test) ==24942== ```
* [core] Fix sorting order for render tilesThiago Marcos P. Santos2017-07-071-0/+3
| | | | | Sort by z order, so lower res tiles don't get rendered over high res tiles.
* [core] Prefetch low resolution tilesThiago Marcos P. Santos2017-07-075-4/+45
|
* [core] Updated script detection for Unicode 10Minh Nguyễn2017-07-061-2/+14
| | | | Updated script detection code to reflect changes in Unicode 10 and UTR 50 revision 17.
* [core] Implement circle-pitch-alignment propertyChris Loer2017-07-067-12/+67
| | | | Closes issue #9349.
* [core] Don't upload empty bucketsBruno de Oliveira Abinader2017-07-062-3/+5
|
* [core] make{Glyph,Image}Atlas only once for any number of symbol layersJohn Firebaugh2017-07-063-34/+24
|
* [core] rename getStencils() to getClipIDs() to better reflect what it ↵Konstantin Käfer2017-07-063-12/+12
| | | | actually does
* [core] don't use unordered_* collections for things we need to sort anywayKonstantin Käfer2017-07-061-4/+4
|
* [core] refactor ClipID generationKonstantin Käfer2017-07-0616-52/+45
|
* [core] Fix iterator invalidation in erase_ifJohn Firebaugh2017-07-051-4/+4
| | | | vector::erase invalidates iterators. It's not safe for erase_if to cache the end iterator nor increment, then erase.
* [core] Factor timePoint initialization: take 2Bruno de Oliveira Abinader2017-07-043-6/+9
|
* [core] Bind only active attributes in order to avoid exceeding attribute ↵Lauren Budorick2017-06-293-6/+64
| | | | | limits (#9373) Introducing two new attributes to enable property functions for line-width (#9250) pushed the attribute count over GL_MAX_VERTEX_ATTRIBS on some devices. Now we selectively bind only attributes that are used, making it unlikely to surpass GL_MAX_VERTEX_ATTRIBS.
* [core] Check if frameZoom is NaN in Transform::flyTo callbackBruno de Oliveira Abinader2017-06-281-0/+5
|
* [core] Clamp to scale boundaries in TransformState::setLatLngZoomBruno de Oliveira Abinader2017-06-281-1/+1
|
* [core] remove tile cache size setterIvo van Dongen2017-06-2713-41/+0
|
* [core] fix render doesn’t flag style mutationIvo van Dongen2017-06-261-2/+2
|
* [core] Don't transition new layers on a setStyle operationJohn Firebaugh2017-06-269-22/+48
|
* [core] Introduce the ResourceTransformThiago Marcos P. Santos2017-06-261-0/+13
| | | | Wrapper for transforming URLs on the OnlineFileSource.
* [core] Make the mbgl/actor headers publicThiago Marcos P. Santos2017-06-263-168/+0
| | | | | They will be needed by the DefaultFileSource, something that we also export as public.
* [core] Move setStyleJSON/URL to Style; add Map::setStyleJohn Firebaugh2017-06-225-112/+117
|
* [all] Promote Style to public APIJohn Firebaugh2017-06-2212-397/+449
|
* [core] Refactor CustomLayer internalsJohn Firebaugh2017-06-229-85/+66
| | | | Move the responsibility for initialization/deinitialization/rendering to RenderCustomLayer. This eliminates special case code from Map and Style.
* [core] document lifetimes of GeometryTileFeaturesKonstantin Käfer2017-06-211-0/+7
|
* [core] retain GeometryTileLayer in SymbolLayoutKonstantin Käfer2017-06-215-14/+21
| | | | We're storing GeometryTileFeature objects in SymbolLayout, but they may reference data in GeometryTileLayer, which could go away if we don't retain it.
* [core] always return owning pointers for GeometryTileData::getLayer()Konstantin Käfer2017-06-218-50/+77
|
* [core] switch to vector-tile library for decoding Mapbox vector tilesKonstantin Käfer2017-06-213-252/+62
|
* [core] shared feature data for GeoJSONTileData objectsKonstantin Käfer2017-06-211-5/+11
|
* [core] shared data among AnnotationTileFeature objectsKonstantin Käfer2017-06-215-30/+82
|
* [core] add benchmark for vector tile parsingKonstantin Käfer2017-06-213-298/+334
|