Thiago Marcos P. Santos
2425cf4ef8
Revert "[android] Do not create Timers on Default main loops"
...
This reverts commit 13cd75f099 .
2016-07-06 17:43:09 +03:00
Thiago Marcos P. Santos
13cd75f099
[android] Do not create Timers on Default main loops
...
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
2016-07-05 21:04:27 +03:00
jingsam
e82ecc60ac
mapbox: URL containing query string causes infinite loop ( #5554 )
...
* correct all EXPECT_EQ(actual, expected) to EXPECT_EQ(expected, actual)
* fix getMapboxURLPathname() of URL with querystring
* add test for normalizeSourceURL of non-mapbox protocal
* Update mapbox.cpp
2016-07-04 00:26:28 -07:00
Bruno de Oliveira Abinader
33a8856c2a
[test] Added max zoom annotation tests
2016-06-28 12:02:43 +03:00
John Firebaugh
8956179ce0
[core] Merge TexturePool into ObjectStore; pool all textures ( #5477 )
2016-06-27 13:44:46 -07: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
John Firebaugh
16c435b151
[core, node] Implement bindings for addLayer
2016-06-24 09:39:51 -07:00
John Firebaugh
c4e4cc5081
[core] Adjust layer source properties to better reflect reality
...
* Layer source ID is immutable; must be provided to the constructor
* Layer source layer is mutable
* Layers with GeoJSON sources do not have a source layer
While here, make Layer::copy impl-private.
2016-06-24 09:39:15 -07:00
John Firebaugh
089c4e413f
[core] Split up and clean up conversion.hpp
2016-06-24 09:39:15 -07:00
John Firebaugh
699076c2fa
[core] Remove TexturePool from style::UpdateParameters ( #5442 )
2016-06-22 12:32:06 -07:00
John Firebaugh
3459b83736
[core, node] Node bindings for setFilter
2016-06-21 18:24:49 -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
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
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
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -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
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
Young Hahn
24b66bc8cd
Color class ( #5361 )
...
* Color class
* Switch to list initialization
2016-06-15 11:38:22 -04:00
Bruno de Oliveira Abinader
001b545290
[tidy/linux] modernize-use-default
2016-06-14 22:14:11 +03: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
55abb76f68
[core] Vector source tileSize is constant
2016-06-14 11:25:45 -07:00
John Firebaugh
b222689de8
[core] Pass geojsonvt only to GeoJSONSource
2016-06-14 11:25:45 -07:00
John Firebaugh
9b0093e32d
[core] Introduce source subclasses
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
6e22de8cce
[tidy] Check modernize-use-auto
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html
2016-06-13 23:32:06 +03: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
John Firebaugh
5c7dfd948f
[core] *Tile ↔ *TileData
...
Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
2016-06-13 10:59:33 -07:00
Konstantin Käfer
2bdecdf9f9
[core] fix pedantic warning messages
2016-06-13 11:16:19 +02:00
Bruno de Oliveira Abinader
9b6c2e6940
[test] Added Projection tests
2016-06-13 10:11:20 +03:00
Bruno de Oliveira Abinader
80960b3939
[test] Added style layer properties tests
2016-06-10 17:35:02 +03:00
Konstantin Käfer
4e5d065000
[core] load parents of missing tiles as optional
2016-06-10 12:42:14 +02:00
Konstantin Käfer
fce5dd5f6a
[core] TileData objects now store whether an optional load attempt was performed
2016-06-10 12:42:14 +02:00
Konstantin Käfer
8a8f828e41
[core] rename onPlacementRedone -> onNeedsRepaint
2016-06-10 12:42:14 +02:00
Konstantin Käfer
2c7f7fb566
[core] createTile callback can load optional and required tiles
2016-06-10 12:42:14 +02:00
Thiago Marcos P. Santos
40211abd9a
[test] Rename Stress test to Load
...
Too slow to run on valgrind.
2016-06-09 19:56:35 +03:00
Bruno de Oliveira Abinader
cfac924606
[core] s/SharedTexture/PooledTexture/
2016-06-07 22:42:18 +03:00
Konstantin Käfer
aa88ca4757
[core] remove unused code
2016-06-07 13:55:35 +02:00
Bruno de Oliveira Abinader
83d349ee16
[core] Use RAII for TexturePool textures
...
TexturePool now disposes acquirable ids via SharedTexture, which
guarantees that these are going back to TexturePool once released.
2016-06-07 13:01:58 +03:00
Bruno de Oliveira Abinader
623da8bfeb
[test] Added mbgl::gl::TexturePool tests
2016-06-03 11:03:16 +03:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00