Android/core: Couple a sequenced scheduler to the lifetime of a GeoJSON source (#2182)

This commit is contained in:
mwilsnd
2024-03-11 12:49:37 -04:00
committed by GitHub
parent 25678a4d99
commit 4e9392ee29
6 changed files with 23 additions and 30 deletions

View File

@@ -969,8 +969,10 @@ TEST(Source, VectorSourceUrlSetTiles) {
TEST(Source, GeoJSONSourceTilesAfterDataReset) {
SourceTest test;
GeoJSONSource source("source");
auto geoJSONData = GeoJSONData::create(mapbox::geojson::parse(
R"({"geometry": {"type": "Point", "coordinates": [1.1, 1.1]}, "type": "Feature", "properties": {}})"));
auto geoJSONData = GeoJSONData::create(
mapbox::geojson::parse(
R"({"geometry": {"type": "Point", "coordinates": [1.1, 1.1]}, "type": "Feature", "properties": {}})"),
Scheduler::GetSequenced());
source.setGeoJSONData(geoJSONData);
RenderGeoJSONSource renderSource{staticImmutableCast<GeoJSONSource::Impl>(source.baseImpl), test.threadPool};