Commit Graph

8219 Commits

Author SHA1 Message Date
John Firebaugh
8a9ee26b0e [core] Use mbgl::style::conversion in node bindings 2016-06-21 16:04:22 -07:00
John Firebaugh
a18d6dda5d [core] Rewrite style parsing logic for reuse in node bindings 2016-06-21 15:38:13 -07:00
Thiago Marcos P. Santos
7ea0a0db32 [tests] Run memory tests on travis
Qt4 will run tests with libjemalloc.so. The Memory.Footprint and
the Memory.Fragmentation will only run with libjemalloc.so because
we have then a better control over the results.
2016-06-21 19:12:32 +02:00
Thiago Marcos P. Santos
ddc6bc330f [tests] Add memory tests
Simple tests that will render a raster and a vector map and
hopefully the valgrind bot will detect something wrong if any.

The other test will look for application lifetime leaks that cannot
be detected with valgrind. It can also detect GL leaks if they are
very expressive.  A threshold is needed because of memory will grow
anyway due to fragmentation.
2016-06-21 19:12:32 +02:00
Thiago Marcos P. Santos
178e0e9da9 [tests] Add resources for rendering offline
The StupFileSource of the memory test will do the rendering
completely offline with a vector tile that is densly populated
with features and a raster tile of the same region.

The styles are streets and satellite respectivelly.
2016-06-21 18:58:48 +02:00
Thiago Marcos P. Santos
2be2340c30 [tests] Do not re-trigger answered requests
This happens on real file sources when tiles expire or in case
of error. Here we only retry on error.
2016-06-21 18:58:48 +02: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
77f309e7a0 [core] Factor out thread name setter/getter 2016-06-20 13:42:30 +03:00
Bruno de Oliveira Abinader
6c9e00be3a [node] Read 'options.showOverdrawInspector' 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
97dffeb03d [core] s/Wireframe/Overdraw/g 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
df5a395708 [core] Refactor wireframe to match JS overdraw mode 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
7e549b9020 [core] Added BlendColor GL config value 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
9038d66af6 [core] Added missing BlendFunc operator 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
76fc07c606 [core] Autogenerate Shader name 2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
760a692378 [Qt] Added QMapbox::TransitionOptions to style class functions 2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
2f8fce7bdb [core] Cleaned up TransitionOptions 2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
05ae0b5dfd [core] Use default transition ease for style transition
Fixes #363.
2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
5792091e9d [core] Added mbgl::util::DEFAULT_TRANSITION_EASE 2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
22aa22c99c [core] UnitBezier ctor is now constexpr 2016-06-20 13:01:59 +03:00
Minh Nguyễn
350d015cc2 [osx] Added AppleScript example 2016-06-19 21:19:09 -07:00
Minh Nguyễn
ab6318e3e3 [osx] Works with AppleScript
Sure, why not?
2016-06-19 18:28:30 -07:00
Bruno de Oliveira Abinader
87a09c51ee [build/qt] Use platform-specific gyp flavor when cross-compiling 2016-06-19 12:40:49 +03:00
Bruno de Oliveira Abinader
e50980793a [build] Use mason platform info when cross-compiling
Build platform equals to host platform if not cross compiling, otherwise
use the mason-provided platform.
2016-06-19 12:18:58 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b [core] Avoid redundant 'inline' usage 2016-06-18 23:46:50 +03:00
Bruno de Oliveira Abinader
41497e9c41 [core] Cleaned up enum classes
- Replaced static_cast with C++ casts.
- Replaced inline with constexpr.
2016-06-18 20:23:00 +03:00
Bruno de Oliveira Abinader
0006c9c275 [core] Fix typo in mbgl::Response
WIP: Use Enum<Type> for mbgl::Storage::Response::Value.
2016-06-18 20:23:00 +03:00
John Firebaugh
2921127bdb [core] Avoid unnecessary work when a symbol annotation is updated
In particular, if only the geometry changes, don't cascade and recalculate the style.
2016-06-17 11:38:04 -07:00
John Firebaugh
e2f52a1dd8 [core] Copy only the necessary style layers to the worker 2016-06-17 11:38:03 -07:00
John Firebaugh
a3318c2ced [macos] Add "Add Animated Annotation" to the Debug menu 2016-06-17 11:38:03 -07:00
John Firebaugh
86d768c2af [macos] Fix an intended floating point division 2016-06-17 11:38:03 -07:00
Bruno de Oliveira Abinader
061511bc69 [build] Don't override CXX11ABI if already set 2016-06-17 20:44:40 +03:00
Bruno de Oliveira Abinader
a08bb4ccea [Qt] Define QT_IMAGE_DECODERS if needed 2016-06-17 20:43:21 +03:00
Bruno de Oliveira Abinader
61d9232c02 [core] Do not use pthread_getname_np before glibc 2.11
Follows approach in src/mbgl/util/thread.hpp header.
2016-06-17 16:04:37 +03:00
John Firebaugh
5254127e8c [core] Runtime source API: Map methods 2016-06-16 13:27:15 -07:00
John Firebaugh
9d6b50828e [core] Runtime source API: part 2 2016-06-16 13:27:15 -07:00
John Firebaugh
900568cfb0 [core] Runtime source API: private impls 2016-06-16 13:27:15 -07:00
John Firebaugh
19158d9f01 [core, node] Implement setPaintProperty for color properties (#5380) 2016-06-16 13:25:06 -07:00
Bruno de Oliveira Abinader
3f024ebaf0 [Qt] Install valgrind on-demand 2016-06-16 19:30:20 +03:00
Bruno de Oliveira Abinader
d323f393ec [Qt] Cleanup annotation usage 2016-06-16 19:30:19 +03:00
John Firebaugh
7e1a9b7274 [core] Update test suite; use linear interpolation for rotated icons 2016-06-15 17:28:47 -07:00
John Firebaugh
a0b2982119 [core] Prepare Filter and FilterEvaluator for extraction (#5366) 2016-06-15 14:55:45 -07:00
Young Hahn
199ea2a82a Support for icon-text-fit, icon-text-fit-padding (#5334)
* Add support for icon-text-fit

* Port unit tests for getIconQuads() from js => cpp

* Add support for padding in all 4 directions.

* Update all hashes post-merge
2016-06-15 17:13:31 -04:00
John Firebaugh
a020e535ca [core] Add a few conveniences to Color 2016-06-15 13:22:00 -07:00
John Firebaugh
d48333f26d [core] Remove unused and mis-parsed properties from Tileset
latitude and longitude were reversed. Fortunately they were not used.
2016-06-15 11:28:34 -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
a56f65a4d8 [core] Removed duplicated code in circle shader blur
Antialiased blur calculation now happens inside the vertex shader code.
2016-06-15 18:53:05 +03:00
Bruno de Oliveira Abinader
fc0f4edef3 [core] Fix sublayer depth when drawing stroke
Port from -js: 002c690712
2016-06-15 18:53:05 +03:00
Bruno de Oliveira Abinader
54e3aa185f [core] Cleaned up Painter::render{Background,Fill} 2016-06-15 18:53:05 +03:00
Bruno de Oliveira Abinader
814e516a4f [core] Separate pattern size from draw-time variables
Part of https://github.com/mapbox/mapbox-gl-shaders/issues/1.
2016-06-15 18:53:05 +03:00