John Firebaugh
2bbde6903a
[core] Rename for clarity: ActiveTexture → ActiveTextureUnit
2017-09-11 10:17:54 -07:00
Asheem Mamoowala
50fd917510
Fast tileCount with help from @mapbox/sphericalmercator module
2017-09-08 17:38:42 -07:00
Lauren Budorick
f8a53234ff
[core] Remove debug::renderTree
2017-09-07 12:07:46 -07:00
Ivo van Dongen
0bb97e2307
[core] make thread.hpp public
2017-08-30 17:18:37 +03:00
Chris Loer
17a3a805f1
[core] Add optional type template parameter to util::unit, so that it doesn't always pick up the default type of 'double' from util::mag.
2017-08-25 14:20:42 -07:00
Thiago Marcos P. Santos
2108763010
[core] Remove std:: namespace for some functions
...
They are not available on Android + GCC (needed by Qt)
2017-08-07 17:20:33 +03:00
John Firebaugh
d4cb498d7a
[all] Merge View into RendererBackend
2017-07-26 09:50:38 -07:00
Thiago Marcos P. Santos
acd95c325a
[core] Fix issues with the std:: namespace and old compilers
...
Specifically when building Android with GCC 4.9 (which Qt still does :-/)
2017-07-26 18:51:11 +03:00
Thiago Marcos P. Santos
a3244421a5
[Qt] Rename files with same name
...
QMake is having some issues with files with same names when
building the Qt Location plugin.
2017-07-19 14:39:39 +03:00
Konstantin Käfer
6b954677c0
[core] fix undefined behavior for division through 0
2017-07-17 15:02:47 +02:00
Thiago Marcos P. Santos
70e557a6f8
[core] Use gmtime_s on Windows
...
gmtime_r is POSIX
2017-07-12 15:13:33 +03:00
Thiago Marcos P. Santos
0d7d3d8959
[core] Use std::to_string on Windows
...
Clang on Window's can't parse rapidjson's dtoa.
2017-07-12 15:13:33 +03:00
Thiago Marcos P. Santos
3b49ec3a0b
[core] Prefer std:: functions over POSIX
...
s/unlink/std::remove
2017-07-12 15:13:33 +03:00
Ansis Brammanis
77734cfe1b
[core] fix transformMat4
...
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.
2017-07-11 09:10:24 -07:00
Thiago Marcos P. Santos
7c117281bc
[core] Isolate pthread-based tls implementation
2017-07-07 18:10:06 +03:00
Minh Nguyễn
2fe3dd64c0
[core] Updated script detection for Unicode 10
...
Updated script detection code to reflect changes in Unicode 10 and UTR 50 revision 17.
2017-07-06 11:50:03 -07:00
John Firebaugh
87081b8391
[core] Fix iterator invalidation in erase_if
...
vector::erase invalidates iterators. It's not safe for erase_if to cache the end iterator nor increment, then erase.
2017-07-05 20:15:17 +02:00
Thiago Marcos P. Santos
7e8bdadb91
[core] Rename ThreadedObject to Thread
...
Now that the old Thread class is gone, we can give ThreadedObject
a better name.
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
1427628c56
[core] Remove util::Thread
...
Fixes #6425
2017-06-21 14:30:09 +03:00
Thiago Marcos P. Santos
0de17ea5f4
[core] Added the ThreadedObject
...
Actor model version of util::Thread.
2017-06-21 14:30:09 +03:00
Bruno de Oliveira Abinader
a05f060153
[core] Added Backend::{assume,set}ScissorTest
2017-06-13 13:37:41 +03:00
Chris Loer
6ceecb5581
[core] Disable letter-spacing for Arabic labels (issue #9057 )
2017-05-22 10:54:45 -07:00
Konstantin Käfer
d664a3e05e
[core] leave Image objects in a valid state after premultiply/unpremultiply
2017-05-19 14:13:07 +02:00
Chris Loer
77b24bc0d3
[core] Throttle tiles to redo symbol placement at most once every 300ms.
...
Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967 .
2017-05-17 16:25:06 -07:00
John Firebaugh
4c26759b69
[core] Remove WorkQueue
...
No longer used as of 5cdf838a38 .
2017-05-17 09:28:26 -07:00
John Firebaugh
c80f3e9d29
[linux] loop-uv depends on mbgl-core for linking
2017-05-12 11:26:27 -07:00
John Firebaugh
c2a5894f2d
[core] Immutable Impls
2017-05-12 11:26:27 -07:00
Bruno de Oliveira Abinader
9894e58047
[tidy] modernize-use-override
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
25b2250c32
[tidy] modernize-use-using
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
fa36110dfb
[tidy] modernize-use-auto
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
f709d7b055
[tidy] llvm-namespace-comment
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
6f993230f2
[core] Make deleted members public
...
warning: deleted member function should be public [modernize-use-equals-delete]
2017-05-12 18:07:36 +03:00
John Firebaugh
baaae99a03
[core, android] Factor JSON string conversions
...
This adds a `convertJSON` template, to be used like:
Error error
optional<Foo> foo = convertJSON<Foo>(string, error);
Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.
While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Lauren Budorick
1c9af3226f
[core] Reuse fill-extrusion textures between frames ( #8896 )
2017-05-08 09:06:07 -07:00
Asheem Mamoowala
5c52401d55
[core] Make Map.addImage tests pass ( #8843 )
...
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
John Firebaugh
3c23faf65a
[core] More complete fix for composite function interpolation edge case
...
b5b4549 / #8613 handled the edge case for layout properties, but not paint properties. Move the check for a degenerate range to interpolationFactor in order to handle both correctly.
2017-04-20 16:11:57 -07:00
Bruno de Oliveira Abinader
2f4d162deb
[core] Tighten geo.hpp ctors
2017-04-14 12:33:13 -07:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
Thiago Marcos P. Santos
6c3c421119
[Qt] Fix build when zlib is compiled with -DZ_PREFIX
...
Proper fix this time.
2017-04-07 17:12:28 +03:00
John Firebaugh
16a2839e23
[all] Make LatLng coordinates read-only
2017-04-06 09:22:51 -07:00
Chris Loer
5cdf838a38
[core] De-mutex GlyphAtlas and SpriteAtlas
...
- Expose glyph and icon information to workers via message interface.
- Glyph/SpriteAtlas track which tiles have outstanding requests
and send messages to them when glyphs/icons become available.
- Remove obsolete "updateSymbolDependentTiles" pathway
- Symbol preparation for a tile now depends on all glyphs becoming
available before it can start.
- Start tracking individual icons needed for a tile, although we don't
do anything with the information yet.
- Introduce typedef for GlyphID
2017-04-04 11:33:12 -07:00
Ivo van Dongen
705caf0f26
[core] return empty optional when color could not be parsed
2017-04-04 18:31:11 +03:00
John Firebaugh
da35f64f09
[core] Remove unused ThreadLocal constructor
2017-04-03 14:27:41 +03:00
Thiago Marcos P. Santos
939864cb90
[core] Do not throw on dtors
...
Fix build on GCC6 + Ubuntu 16.04.
2017-04-01 12:57:06 +03:00
Konstantin Käfer
028360b68f
[node] Move util/async_task.hpp to public include directory
2017-03-28 13:53:19 +02:00
Konstantin Käfer
68e032e505
[core] Remove private header includes from CLI utilities
2017-03-28 13:53:19 +02:00
John Firebaugh
54cbdc4812
[core] Move ignore.hpp to public include directory
2017-03-28 13:53:19 +02:00
John Firebaugh
3db027751e
[core] Avoid public dtoa.hpp include
2017-03-28 13:53:19 +02:00
John Firebaugh
15833a6b78
[core] Move interpolate.hpp to public include directory
2017-03-28 13:53:19 +02:00