John Firebaugh
a9842dbd6b
[core] Extract some GlyphRange-related constants
2016-09-26 14:55:49 -07:00
John Firebaugh
8764c20621
[core] Provide rationale for blocking queue while errors resolve
2016-09-26 14:55:49 -07:00
John Firebaugh
570bafcfec
[core] Don't allow OfflineDownload to flood the request queue
2016-09-26 14:55:49 -07:00
John Firebaugh
f34ba23d85
[core] Avoid some copies
2016-09-26 14:55:49 -07:00
Ivo van Dongen
4969043066
[core] OnlineFileSource - prevent double scheduling of requests
2016-09-23 10:47:55 +02:00
Molly Lloyd
598f7c6ad5
[core] allow offline region metadata to be updated ( #6338 )
2016-09-20 17:43:00 +02:00
Lucas Wojciechowski
37cb2bd756
[core] Convert uses of std::set to std::unordered_set ( #6325 )
...
* src/mbgl/annotation/annotation_manager.hpp
* src/mbgl/algorithm/update_renderables.hpp
* src/mbgl/geometry/glyph_atlas.hpp
* src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp
* src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp
* src/mbgl/sprite/sprite_atlas.hpp
* include/mbgl/storage/network_status.hpp
* src/mbgl/text/collision_tile.cpp
* src/mbgl/style/update_batch.hpp
* platform/default/mbgl/storage/offline_download.hpp
* Add GlyphRangeSet typedef
* Fix whitespace & unused imports
2016-09-19 17:26:25 -07:00
Tobrun
9ef65440b6
[core] [android] - public api configurable base endpoint ( #6309 )
...
add runloop to test
2016-09-15 22:01:09 -07:00
Konstantin Käfer
5f49f28d3e
[build] add specific .clang-tidy file for things that use RapidJSON writers
2016-09-15 14:05:23 +02:00
Jason Wray
0bdd968d2b
[core] Remove schema v4 migration path
2016-09-14 15:49:00 -04:00
Jason Wray
4daff7f2f8
[core] Revert SQLite WAL journaling
2016-09-14 15:45:47 -04:00
Ivo van Dongen
dc4659b4a8
[linux] HTTPFileSource - rate limit
2016-09-13 14:21:38 +02:00
Ivo van Dongen
290bd07a92
[core] OnlineFileSource - rate limit
2016-09-13 14:21:37 +02:00
Bruno de Oliveira Abinader
9d2d2d3a91
[glfw] Separate transition options accessors from class API
2016-09-13 12:38:59 +03:00
Jason Wray
e26fa4dd4c
[core] Move SQLite logging setup to before database initialization
...
- Ensure that sqlite3_config() is always called before db init.
- Should only be called once, now.
- Move sqliteVersionCheck into mapbox::sqlite namespace.
2016-09-09 05:42:20 -04:00
John Firebaugh
030234c7a6
[core] Rework invokeWithCallback so that the callback is last
2016-09-08 16:36:47 -07:00
Jason Wray
4ef8f815c9
[core] Implement SQLite error logging ( #6291 )
2016-09-08 13:01:19 -04:00
John Firebaugh
d2abb1b6d5
[core] Change GeoJSONSource::getURL() to return an optional<std::string>
...
GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
2016-08-26 10:30:55 -07:00
Thiago Marcos P. Santos
1d7a5b0fe0
[tests] Add unit test for style loading failures
2016-08-24 20:02:39 +03:00
John Firebaugh
646528bc53
[core] Simplify Thread::invokeSync ( #6128 )
2016-08-24 09:36:11 -07:00
Jason Wray
74f094faab
[core] Update SQLite schema with WAL journal mode and normal sync
...
Offers 2×-4× performance, depending on device vintage.
2016-08-23 13:26:02 -04:00
Konstantin Käfer
0df60c4651
[core] add ability show visualize the depth buffer to the GLFW and macOS app
2016-08-19 17:41:55 +02:00
Konstantin Käfer
18176605f6
[core] support "scheme": "tms" in TileJSON files
2016-08-16 11:04:30 +02:00
Vladimir Agafonkin
9ecc0d9597
GeoJSON point clustering ( #5724 )
...
* add supercluster dependency
* prepare GeoJSONTile for Supercluster
* prepare GeoJSONSource for accepting options
* try removing mbgl::GeoJSON
* fix setGeoJSON types
* add GeoJSONSource getURL
* add geojson to include path
* add Supercluster index in GeoJSONSource
* fix GeoJSONSource getZoomRange
* bring back mbgl::GeoJSON header
* fix tidy warnings hopefully
* try test-suite with enabled cluster test
* fix formatting in clustering-related files
2016-07-27 20:18:41 +03:00
Bruno de Oliveira Abinader
0e60238596
[glfw] Added 'addRandomLineAnnotations'
2016-07-23 14:10:33 +03:00
Thiago Marcos P. Santos
036acf23cd
[default] uv_run should use UV_RUN_NOWAIT
...
UV_RUN_ONCE might block and that is not the semantics we expect
from RunLoop::runOnce().
2016-07-22 16:29:08 +03:00
Thiago Marcos P. Santos
e23d8adf8c
[core] Clean-up threading #ifdefs
2016-07-16 10:38:42 +03:00
Thiago Marcos P. Santos
538814d7bd
[core] Make the AssetFileSource thread low priority
2016-07-16 10:38:42 +03:00
Thiago Marcos P. Santos
4d9e824639
[core] Trim thread name on Linux to 16 bytes
...
That is a hard limit, if you set a string bigger than that, it
doesn't get set.
2016-07-16 10:38:42 +03:00
Thiago Marcos P. Santos
4a1a7937ae
[core] Move set/get thread names to platform::
...
Android needs its own implementation.
2016-07-16 10:38:42 +03:00
Konstantin Käfer
77e7846756
[core] code style cleanups
...
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
Bruno de Oliveira Abinader
ad081e698a
[core] Added CharArrayBuffer
...
Implements a custom std::streambuf to avoid creating temporary
std::string objects and thus optimizing image decode.
Suggested by @artemp in
https://github.com/mapbox/mapbox-gl-native/pull/5417#issuecomment-227700063 .
2016-06-30 17:56:23 +03:00
John Firebaugh
b8326870e1
[core] Increment completedTileCount when appropriate ( #5475 )
2016-06-24 15:28:10 -07:00
John Firebaugh
021d4199cb
[core, node] Implement bindings for addSource
2016-06-24 09:39:51 -07:00
Bruno de Oliveira Abinader
b06176cf11
[core] Replace boost iostream with standard {i,s}stream
...
Fixes #4915 .
2016-06-21 10:29:15 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b
[core] Avoid redundant 'inline' usage
2016-06-18 23:46:50 +03:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
41760b5696
[core] Use variant<std::string, GeoJSON> in GeoJSON source
2016-06-15 11:28:34 -07:00
John Firebaugh
87edff4047
[core] Use variant<std::string, Tileset> in TileSource
...
A tile source can either specify a URL to TileJSON, or inline TileJSON.
2016-06-15 11:28:34 -07:00
Bruno de Oliveira Abinader
deea0c41a2
[tidy/linux] clang-analyzer-deadcode.DeadStores
2016-06-14 22:38:40 +03:00
Bruno de Oliveira Abinader
12acd29664
[tidy/linux] modernize-pass-by-value
2016-06-14 22:38:40 +03:00
Bruno de Oliveira Abinader
f0e48ca327
[tidy/linux] modernize-use-override
2016-06-14 22:14:11 +03:00
Bruno de Oliveira Abinader
6b5caf4b2c
[tidy/linux] modernize-use-nullptr
2016-06-14 22:14:11 +03:00
Bruno de Oliveira Abinader
7413061f8e
[tidy/linux] llvm-namespace-comment
2016-06-14 22:14:11 +03:00
John Firebaugh
5bbcca8326
[core] Add virtual Source::getTileSize()
2016-06-14 11:25:45 -07:00
John Firebaugh
9d3c4fbbb0
[core] Push Source::url down to subclasses
2016-06-14 11:25:45 -07:00
John Firebaugh
9dfcb95e4f
[core] Push Source::tileset down to TileSource
2016-06-14 11:25:45 -07:00
John Firebaugh
6eab895bc0
[core] Use Range<uint8_t> instead of full Tileset where possible
2016-06-14 11:25:45 -07:00
John Firebaugh
282e626ac1
[core] Make enum ↔ string conversion more generic-friendly
...
Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types.
While there, properly validated enumerated property values.
2016-06-13 17:22:05 -07:00
Bruno de Oliveira Abinader
4d75001e9a
[tidy] Check modernize-use-override
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-override.html
2016-06-13 23:32:06 +03:00