Commit Graph

16897 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
e373d8a592 [android] Add OfflineManager.runPackDatabaseAutomatically(boolean) API 2019-12-02 13:46:51 +02:00
Mikhail Pozdnyakov
6d4e5f57ec [core] Add OfflineDatabase.Pack unit test 2019-12-02 13:46:51 +02:00
Mikhail Pozdnyakov
4c49f0c9db [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() API
- added a unit test
- Updated inline comments in default_file_source.hpp
2019-12-02 13:46:51 +02:00
Mikhail Pozdnyakov
0ec01356d8 Revert "[android] Add OfflineRegion.deleteAndSkipPackDatabase"
This reverts commit 9bc3aa46384229778853c2710e5b06259b78ed18.
2019-12-02 13:46:51 +02:00
zmiao
b2693f9d53 [test-runner] Add android RenderTestRunner baseline metrics (#15979)
* [test-runner] Enable probe-testing android render test runner

* [test-runner] Add pixel4 baseline metrics

* Add git ignored metrics

* Make renderTestrunner run two times with different manifest config
2019-12-02 13:29:13 +02:00
Alexander Shalamov
0c348a8acf [test-runner] Log all 'probeFileSize' failures
If there are multiple file size probes in a test file, it is
better to report all failures instead of first failed probe.
2019-12-02 12:07:37 +02:00
Alexander Shalamov
00d133239e [core] Blacklist VAO extension for Adreno (TM) 4xx GPUs
Blacklist in order to avoid crashes in a driver.
2019-12-02 11:03:16 +02:00
Mikhail Pozdnyakov
3947d5fa98 [core] Retain thread pool in GeoJSONSource
Otherwise, the construction of the `Immutable<Source::Impl>` in background thread might never yeld.
2019-11-29 15:37:49 +02:00
Juha Alanen
2e93f1e982 [test-runner] Run render tests with metrics on linux 2019-11-29 15:08:34 +02:00
Juha Alanen
0ba4b5c93f [test-runner] Add baseline metrics for linux 2019-11-29 15:08:34 +02:00
Thiago Marcos P. Santos
105ddad389 [glfw] Fix map not resizing on Linux
Apparently GLFW is implicitly calling glViewport on macOS but
not on Linux. Force setting the viewport instead of assuming a value.
2019-11-29 15:03:45 +02:00
Thiago Marcos P. Santos
af0d46c367 [android] Use icf=all
Chromium is using it for a while on ARM.

https://codereview.chromium.org/1153143004/patch/20001/30002
2019-11-29 13:42:18 +02:00
Mikhail Pozdnyakov
597757df6a [core] GeoJSONVTData uses Scheduler::GetSequenced() 2019-11-29 11:12:55 +02:00
Mikhail Pozdnyakov
06c80cae3c [core] Introduce GeometryTile::reset()
The newly introduced `GeometryTile::reset()` is
used while GeoJSON tile update in order to prevent from the
parsing of the new data with the stale layers or vice verse.
2019-11-29 11:12:55 +02:00
Mikhail Pozdnyakov
6419cd0ab2 [core] Calculate GeoJSON tile geometries in a background thread
Call `mapbox::geojsonvt::GeoJSONVT::getTile()` in a background
thread, so that the rendering thread is not blocked.
2019-11-29 11:12:55 +02:00
Mikhail Pozdnyakov
ab5572b0bc [core] Fix supercluster lambdas capturing 2019-11-29 09:53:28 +02:00
Mikhail Pozdnyakov
cd4136ed4b [core][android][darwin] Fix GeoJSONOptions handling
- share the `GeoJSONOptions` instances using `Immutable<GeoJSONOptions>` - avoid extra copying
- fix wrapping of the `GeoJSONOptions` instances in supercluster map/reduce lambdas.
  Previously, local variables were wrapped by reference.
2019-11-29 09:53:28 +02:00
Thiago Marcos P. Santos
e3d1daaf66 [metrics] Measure compressed size for Android
Because what metters is the size we add to the APK.
2019-11-28 19:18:17 +02:00
Thiago Marcos P. Santos
8c9b038af3 [render-test] Add support for measuring compressed file size
Useful because for platform such as Android, we want to measure
the size of the library inside the APK, which is usually compressed.
2019-11-28 19:18:17 +02:00
Mikhail Pozdnyakov
b5794730b5 [core] Introduce Scheduler::GetSequenced() API
The newly introduced `Scheduler::GetSequenced()` returns
sequenced schedulers from the cache limited to 10 instances,
preventing from spawning too many threads.
2019-11-28 14:34:52 +02:00
Thiago Marcos P. Santos
316f1d0ad1 [metrics] Add new baselines. 2019-11-28 12:34:22 +02:00
Thiago Marcos P. Santos
efb567f1f5 [android] Use -Oz to reduce binary size 2019-11-28 12:34:22 +02:00
Thiago Marcos P. Santos
1455f6f581 [metrics] Make the parsing of metrics even more strict
File must be `metrics.json`.
2019-11-28 12:34:22 +02:00
Thiago Marcos P. Santos
d13562252d [metrics] Isolate binary size metrics
Will give us a better view of what changed and by how much. Otherwise
the test stops at the first failure.
2019-11-28 12:34:22 +02:00
Thiago Marcos P. Santos
09b724ea33 [render-test] Fix regex matching the directory name
This code was matching `style.json` instead of `metrics.json` if
the `style.json` was contained inside `metrics/.../style.json`.
2019-11-27 18:32:58 +02:00
Thiago Marcos P. Santos
2a65301f09 [build] Get the bots enforcing the binary size
Release bots will build and persist the build targets other workspaces.

A bot will collect all the binaries and check the size.
2019-11-27 18:32:58 +02:00
Thiago Marcos P. Santos
cf160a24d0 [build] Install some of our targets
This will make it easier to measure the binary size because we can
strip the binaries from symbols in a portable way.
2019-11-27 18:32:58 +02:00
Thiago Marcos P. Santos
8d163c159f [metrics] Add binary size metrics
This test will check the size of the tools and shared libraries
built from previous bots in a single run.

We will have +/- 1% acceptable variance before the test fails.
2019-11-27 18:32:58 +02:00
Thiago Marcos P. Santos
91d83accde [tests] Increase test tolerance
This test has been flaky on mac.
2019-11-27 18:32:58 +02:00
Mikhail Pozdnyakov
2b6a0e48ee [test runner] Enable test results update from cmd line
Added the following command line argument:
```
-u[update], --update=[update]     Test results update mode.
Supported values are: "default", "platform", "metrics"
```
2019-11-27 18:19:10 +02:00
Łukasz Paczos
b1fe1433b0 bump mapbox-gl-native pin 2019-11-27 16:25:32 +01:00
Łukasz Paczos
4de847e9ca add gnustl_shared shared build run on a low-end device 2019-11-27 16:25:32 +01:00
Langston Smith
c35f64a2b5 [mobile] README update about mobile work being moved to new repos (#15958) 2019-11-27 07:18:51 -08:00
Alexander Shalamov
2f8501043c [test-runner] Move probe related command line args to manifest
- Move probe related command line arguments to manifest, example:

  "probes": ["probeGFX", "probeNetwork", "probeMemory"],
  "metric_path": "metrics/linux"

- Use manifest file name as a postfix for a result page
- Move injected probes 'begin' section before map object creation
- Generalize artifact storing shell script
2019-11-27 16:43:33 +02:00
Łukasz Paczos
f10097640a [android] do not fail on tautological-constant-compare error 2019-11-27 14:41:52 +01:00
Łukasz Paczos
561c2ed335 add SoLoader's proaguard rule 2019-11-27 12:45:22 +01:00
zmiao
11321497da [render-test] Add metric_paths into Manifest (#15973)
* [render-test]Add expected metrics path in manifest file

* seperate metrics.json and expected.png

* fix expected path parsing

* keep expectation path if update is enabled
2019-11-27 11:08:55 +02:00
Julian Rex
1d2f6326a9 Move common configuration settings into shared xcconfig (#70)
* Move common compiler settings to xcconfig file.

* Allow float loop counter

* Removed pch

* Re-add -fcxx-modules post rebase.
2019-11-26 17:16:41 -05:00
Julian Rex
520190f1ab Fix variable in publish script (#76) 2019-11-26 17:07:05 -05:00
Julian Rex
40635ca605 Adds tests for host check change. (#64)
* Adds tests for host check change.

* Undo submodule pin, now it's been updated.
2019-11-26 16:31:07 -05:00
Julian Rex
c88db64db3 Fix unbound variable error (#75) 2019-11-26 14:23:26 -05:00
Julian Rex
631163999a Fix tab (#74) 2019-11-26 10:50:21 -05:00
Mikhail Pozdnyakov
5c271dba24 [core] Update Source.GeoJSONSourceTilesAfterDataReset unit test 2019-11-26 16:35:17 +02:00
Mikhail Pozdnyakov
b6fbd1221e [core] Clear tiles when GeoJSON data changes
In tile and static mode clear tiles when data changes
in order to avoid render tests being flaky.
2019-11-26 16:35:17 +02:00
Sudarsana Babu Nagineni
0f3eede6a6 [build] Add an option to include platform specific implementation
Add an option to include platform specific implementation sources
to mbgl-core.
2019-11-26 16:23:36 +02:00
Julian Rex
3615634022 Add timeout for ios-release-tag (#73) 2019-11-26 09:21:48 -05:00
Julian Rex
5e31b8fc36 Integrate Telemetry SDK as framework dependency (#60) 2019-11-25 17:44:36 -05:00
Julian Rex
971cee8c48 Bump iOS 11 builds to 11.2.1 (#72) 2019-11-25 16:27:33 -05:00
Jordan Kiley
04547cfba0 Update changelog and mapbox-gl-native submodule (#67) 2019-11-23 08:25:16 -05:00
Langston Smith
76d2a4bcfd [docs] - changelog update for 8.6.0-alpha.2 release (#67) 2019-11-22 13:38:47 -08:00