Mikhail Pozdnyakov
8bf841a951
[core] Render::clearData clears fonts
2020-03-20 11:43:59 +02:00
Mikhail Pozdnyakov
2ae96ad687
[core] Introduce Renderer::clearData() instead of keepRenderData map options
...
`Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`:
- gives more flexibility to the client
- similar to the existing `Renderer::reduceMemoryUse()`
- the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which
happened if the new still image request had come before all tiles from the previous requests were loaded.
Co-authored-by: Dane Springmeyer <dane@mapbox.com >
2020-03-20 11:43:59 +02:00
galinelle
bc45d65c58
Add additional transformState::latLngToScreenCoordinate getter ( #16311 )
...
This change adds a latLngToScreenCoordinate overload, to retrieve
the projected vec4 in additional to the ScreenCoordinate object,
that is useful to detect whether the projected latLng is in front
or behind the camera.
2020-03-19 18:53:09 +02:00
zmiao
c3a1caf612
update test
2020-03-19 14:40:49 +02:00
zmiao
6989ee6e03
[build] Use found code sign identities
2020-03-19 10:20:44 +02:00
Mikhail Pozdnyakov
11e6bd46c2
Add Map.KeepRenderData and Map.DontKeepRenderData tests
2020-03-18 20:14:15 +02:00
Juha Alanen
96e32717c0
[test] Run Annotations DebugSparse test only with OpenGL renderer
2020-03-12 15:24:37 +02:00
Thiago Marcos P. Santos
410e583db6
[core] Add a callback for platform RunLoop integration
...
Platform integration callback for platforms that do not have full
run loop integration or don't want to block at the Mapbox GL Native
loop. It will be called from any thread and is up to the platform
to, after receiving the callback, call RunLoop::runOnce() from the
same thread as the Map object lives.
2020-03-11 12:35:20 +02:00
Alexander Shalamov
30aaa76910
[core] Add unit tests for ambient cache size
2020-03-07 10:14:18 +02:00
zmiao
f23599c41d
[core] Remove unnecessary intermediate PolygonFeature
2020-03-05 20:53:16 +02:00
zmiao
c69d3b46b1
[core] Fix within case when point is on polygon boundary
2020-03-05 20:53:16 +02:00
Alexander Shalamov
9a0bc1b58b
[core] Add snapshotter unit tests
2020-03-05 17:43:37 +02:00
Alexander Shalamov
81e116d41a
[core] Use weak annotation manager
...
Map and renderer / orchestrator should be able to run on a separate threads,
however, legacy AnnotationManager is shared between Map and Renderer, therefore
is not a thread safe. Until AnnotationManager is deprecated and removed from a
code-base, use it only via weak pointers.
2020-03-05 17:43:37 +02:00
Mikhail Pozdnyakov
91437d8101
Add OfflineDownload.NoFreezingOnNotFoundError unit test
2020-02-28 12:52:26 +02:00
Juha Alanen
4b148dc202
[build][ios] Refactor iOS test runner CI job configs
2020-02-27 10:09:35 +02:00
Juha Alanen
18e9ed1c0b
[build] Build files related to OpenGL renderer only when the flag is enabled
2020-02-27 10:09:35 +02:00
Mikhail Pozdnyakov
1374f94795
Add Pass.NoCopy unit test
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
ba4f5efa09
[core] OnlineFileSource is never accessed directly
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f
[core] FileSourceManager::getFileSource() returns PassRefPtr
2020-02-26 22:31:59 +02:00
Alexander Shalamov
d49284776b
[core] Update Map.UniversalStyleGetter test
2020-02-26 18:15:23 +02:00
Alexander Shalamov
fb5be4c80c
[core] Add unit test for layer serialization
2020-02-26 18:15:23 +02:00
Juha Alanen
096570e737
[test] Verify pitch bounds
2020-02-26 11:21:04 +02:00
Mikhail Pozdnyakov
c85e7cbce0
Add OfflineDownload.NoFreezingOnCachedTilesAndNewStyle unit test
2020-02-25 23:15:47 +02:00
Mikhail Pozdnyakov
7c48611f9e
[core] Consolidate file source keys in the generic FileSource header
...
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
2020-02-25 23:15:47 +02:00
Juha Alanen
ba315b4bbb
[test] Add test for min and max pitch options
2020-02-25 16:54:44 +02:00
zmiao
b9425dd4ec
[core] Remove unnecessary includes, fix comments
...
This reverts commit b5c386ad7708ca9fe14f219b0ffc94cf6ce8fc88.
2020-02-21 21:39:48 +02:00
zmiao
351f421080
[core] Update unti tests. Remove unnecessary debugging code
2020-02-21 21:39:48 +02:00
Juha Alanen
a5ec862a2a
[test-runner] Share common code between test runners
...
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Alexander Shalamov
d0dfd40b0a
[core] Add unit test for Style::Impl::onSpriteLoaded
2020-02-17 10:14:05 +02:00
Kevin Li
02274e7601
[core] Implement 'in' expression. ( #16162 )
...
* Implement in.cpp
* Fix review comments.
* Add expression_equality test for 'in'
* Fix review comments.
* [core] Update changelog.
* [core] Update mapbox-gl-js
* [core] Ignore render-tests/debug/padding
* [core] Update baseline.
2020-02-15 17:36:57 +08:00
Juha Alanen
6d815401b1
[test-runner] Share common code between iOS test runners
2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c
[test] Add iOS unit test runner
2020-02-14 12:01:52 +02:00
Juha Alanen
a4c4de2828
[test] Fix failing tests on iOS
2020-02-14 12:01:52 +02:00
Alexander Shalamov
f42b5e94ed
[core] Add unit test
2020-02-14 11:54:02 +02:00
Alexander Shalamov
efb7dd0b7b
[core] Use atomic int in Map.PrefetchDelta* unit tests
2020-02-12 20:43:24 +02:00
zmiao
2963afa010
Add support for expression test
...
Fix polygon within algorithm
Add Unit tests
Fix incorrect metrics folder for ios-render-test-runner job
2020-02-12 12:24:05 +02:00
zmiao
3e99c08ea6
Enable parse within expression
...
Add geometry type checker
2020-02-12 12:24:05 +02:00
Ansis Brammanis
4f18d5fa92
[core] sort symbols using symbol-sort-key before placement ( #16023 )
...
fix #15964
partially port mapbox/mapbox-gl-js#9054
2020-02-11 11:24:14 -05:00
Mikhail Pozdnyakov
f38330a9f5
Add Style.AddRemoveImage unit test
2020-02-11 14:34:46 +02:00
Mikhail Pozdnyakov
64e2bcdf43
[core] Loading images to style optimization
...
This change enables attaching images to the style with batches and
avoids massive re-allocations. Thus, it improves UI performance
especially at start-up time.
2020-02-11 14:34:46 +02:00
Alexander Shalamov
3b1a8b8c30
[core] Add unit test for Source::setPrefetchZoomDelta
...
Test verifies that tile pyramid will request only 4 tiles for
current zoom level, if Source's setPrefetchZoomDelta is 0.
2020-02-11 10:40:30 +02:00
Alexander Shalamov
ac50f5275b
[core] Make CustomGeometrySource::TileOptions immutable
2020-02-11 10:40:30 +02:00
Alexander Shalamov
def38cf4db
[core] Override default prefetch delta if source has it's own setting
2020-02-11 10:40:30 +02:00
Thiago Marcos P. Santos
47f2b20435
[build] Remove unused files
...
Buck build is no longer needed, neither is the previous
CMake buildsystem.
2020-02-07 20:12:44 +02:00
Thiago Marcos P. Santos
f7fef70e9d
[build] Move the next buildsystem to the root
...
This will make the `next` buildsystem no longer the `next`, but the
`actual`. The idea is to simplify the build, removing scripts, to
make the platform buildsystem generated by CMake more compatible
with IDEs and make development more streamlined. It will also make
cross compilation easier.
2020-02-07 20:12:44 +02:00
Mikhail Pozdnyakov
bdd7324d62
Add OfflineDatabase.UpdateDatabaseReadOnlyMode unit test
2020-02-07 14:39:03 +02:00
Mikhail Pozdnyakov
2365cab58c
Add OfflineDatabase.PutResourceReadOnlyMode unit test
2020-02-07 14:39:03 +02:00
Alexander Shalamov
5789faf11a
[core] Add unit test for global settings object
2020-02-06 23:54:19 +02:00
Juha Alanen
d4d96fd88c
[test] Enable HTTP server on Android
2020-02-06 17:52:12 +02:00
Juha Alanen
aed25c0438
[test] Improve the stability of a test on Android
2020-02-06 17:52:12 +02:00