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
Bruno de Oliveira Abinader
4161d197fd
[tidy] Check modernize-pass-by-value
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
2016-06-13 23:32:05 +03:00
Bruno de Oliveira Abinader
92f605df32
[tidy] Check modernize-use-nullptr
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2016-06-13 23:32:05 +03:00
Bruno de Oliveira Abinader
9142c447e8
[tidy] Check llvm-namespace-comment
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
2016-06-13 23:32:05 +03:00
Konstantin Käfer
2bdecdf9f9
[core] fix pedantic warning messages
2016-06-13 11:16:19 +02:00
Thiago Marcos P. Santos
62bc6e29c8
[core] Fix deleter mismatch
...
delete[] was being called for a malloc() allocated C buffer.
Found by valgrind:
```
==23065== Mismatched free() / delete / delete []
==23065== at 0x4C2F77B: operator delete[](void*) (vg_replace_malloc.c:621)
==23065== by 0x50C5529: std::default_delete<unsigned char []>::operator()(unsigned char*) const (unique_ptr.h:119)
==23065== by 0x523EC85: std::unique_ptr<unsigned char [], std::default_delete<unsigned char []> >::reset(unsigned char*) (unique_ptr.h:581)
==23065== by 0x523E3D4: mbgl::Raster::upload(mbgl::gl::ObjectStore&) (raster.cpp:63)
==23065== by 0x520CA08: mbgl::RasterBucket::upload(mbgl::gl::ObjectStore&) (raster_bucket.cpp:16)
==23065== by 0x520E56A: mbgl::Painter::render(mbgl::style::Style const&, mbgl::FrameData const&, mbgl::SpriteAtlas&) (painter.cpp:130)
==23065== by 0x52BE15A: mbgl::Map::Impl::render() (map.cpp:265)
==23065== by 0x52BD9BE: mbgl::Map::render() (map.cpp:175)
==23065== by 0x50C9EB4: QMapboxGL::render() (qmapboxgl.cpp:579)
==23065== by 0x4056D3: MapWindow::paintGL() (mapwindow.cpp:166)
```
2016-06-07 23:34:50 +03:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2
[core] Runtime style layer API
2016-06-02 14:51:39 -07:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
John Firebaugh
8985b1311b
[core] Use geometry.hpp types for shape annotations
2016-06-01 17:36:50 -07:00
Jesse Bounds
c9520713ca
[ios] Update telem domain and certs ( #5181 )
...
Change domain from api -> events
Replace old certs with new ones with the same name. The new certs
have an expiry that is further out.
2016-05-27 18:43:39 -07:00
Konstantin Käfer
e2bcea90fc
[core] use #pragma once instead of ifdef include guards
2016-05-25 21:35:37 +02:00
Bruno de Oliveira Abinader
1769e6fcb4
[core] Move GLFW stencil clip debug to core
...
This makes the stencil clip debug available to all platforms.
Fixes #4669 .
2016-05-24 19:58:24 +03:00
Konstantin Käfer
8ee222c45e
[core] allow creating optional requests
...
Introduces "optional" requests. These should be fulfilled by the FileSource only there's a low-cost/easy way to obtain the data (e.g. from a local cache). If the data for an optional request cannot be found, it *must* return a Response object with a NotFound error.
Traditional "required" requests still work the same way, with one change: If you set any prior* field in the Resource (i.e. priorModified, priorEtag, or priorExpires), the DefaultFileSource assumes that you already have the cache value and will not consult the cache before performing the request. If a prior cache lookup didn't turn up any data, and you therefore don't have an Etag or Modified value, you can still skip the cache by setting priorExpires. This will of course always result in a non-conditional HTTP request.
2016-05-18 12:40:22 +02:00
Konstantin Käfer
cd65a43855
[core] move from microsecond precision timestamp to integer second precision
2016-05-13 17:24:22 +02:00
Konstantin Käfer
3bde525711
[core] remove indirection via Task object in DefaultFileSource
2016-05-12 15:13:21 +02:00
Bruno de Oliveira Abinader
c13dd32242
[core] Added Viewport mode
...
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
Konstantin Käfer
7332ae0073
[core] retain tiles differently and remove old TileID class
2016-05-10 14:50:56 +02:00
John Firebaugh
34f9618d31
[core] Replace boost::lexical_cast with std::to_string
...
This removes the only boost dependency from public headers.
2016-05-02 13:08:51 -07:00
John Firebaugh
c1ad321485
[linux] Build with GCC 5 ( #4901 )
...
* [linux] Build with GCC 5
* [build] -fabi-version=0 is the default for GCC 5
2016-04-29 09:57:21 -07:00
Thiago Marcos P. Santos
94093493d5
[glfw] Atomic is no longer needed
...
All View events come from the same thread.
2016-04-28 16:15:07 +03:00