-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of multi-sprites in mbgl-core (#1858)
Co-authored-by: Christophe Brasseur <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <[email protected]> Co-authored-by: Bart Louwers <[email protected]>
- Loading branch information
1 parent
9e8837b
commit f4c6fab
Showing
39 changed files
with
649 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
metrics/android-render-test-runner/render-tests/sprites/array-default-only/metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"network": [ | ||
[ | ||
"probeNetwork - default - end", | ||
2, | ||
35923 | ||
], | ||
[ | ||
"probeNetwork - default - start", | ||
0, | ||
0 | ||
] | ||
], | ||
"gfx": [ | ||
[ | ||
"probeGFX - default - end", | ||
1, | ||
4, | ||
9, | ||
1, | ||
[ | ||
22080, | ||
22080 | ||
], | ||
[ | ||
46, | ||
46 | ||
], | ||
[ | ||
384, | ||
384 | ||
] | ||
] | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
metrics/android-render-test-runner/render-tests/sprites/array-multiple/metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"network": [ | ||
[ | ||
"probeNetwork - default - end", | ||
4, | ||
247582 | ||
], | ||
[ | ||
"probeNetwork - default - start", | ||
0, | ||
0 | ||
] | ||
], | ||
"gfx": [ | ||
[ | ||
"probeGFX - default - end", | ||
2, | ||
6, | ||
13, | ||
1, | ||
[ | ||
28480, | ||
28480 | ||
], | ||
[ | ||
46, | ||
46 | ||
], | ||
[ | ||
384, | ||
384 | ||
] | ||
] | ||
] | ||
} |
Binary file added
BIN
+1.51 KB
metrics/integration/render-tests/sprites/array-default-only/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
metrics/integration/render-tests/sprites/array-default-only/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"pixelRatio": 1, | ||
"width": 128, | ||
"height": 64 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [25, 0] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-25, 0] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": [{ | ||
"id": "default", | ||
"url": "local://sprites/emerald" | ||
}], | ||
"layers": [ | ||
{ | ||
"id": "default", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"symbol-placement": "point", | ||
"icon-image": "post_icon" | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions
79
metrics/integration/render-tests/sprites/array-multiple/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"pixelRatio": 1, | ||
"width": 128, | ||
"height": 64 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 0, | ||
"sources": { | ||
"source-one": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [25, 0] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"source-two": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [-25, 0] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": [ | ||
{ | ||
"id": "default", | ||
"url": "local://sprites/emerald" | ||
}, | ||
{ | ||
"id": "sprite", | ||
"url": "local://sprites/sprite" | ||
} | ||
], | ||
"layers": [ | ||
{ | ||
"id": "default-sprite-features", | ||
"type": "symbol", | ||
"source": "source-one", | ||
"layout": { | ||
"symbol-placement": "point", | ||
"icon-image": "post_icon" | ||
} | ||
}, | ||
{ | ||
"id": "sprite-sprite-features", | ||
"type": "symbol", | ||
"source": "source-two", | ||
"layout": { | ||
"symbol-placement": "point", | ||
"icon-image": "sprite:night-lighthouse-12" | ||
} | ||
} | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
metrics/linux-gcc8-release/render-tests/sprites/array-default-only/metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"network": [ | ||
[ | ||
"probeNetwork - default - end", | ||
2, | ||
35923 | ||
], | ||
[ | ||
"probeNetwork - default - start", | ||
0, | ||
0 | ||
] | ||
], | ||
"gfx": [ | ||
[ | ||
"probeGFX - default - end", | ||
1, | ||
4, | ||
9, | ||
1, | ||
[ | ||
22080, | ||
22080 | ||
], | ||
[ | ||
46, | ||
46 | ||
], | ||
[ | ||
384, | ||
384 | ||
] | ||
] | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
metrics/linux-gcc8-release/render-tests/sprites/array-multiple/metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"network": [ | ||
[ | ||
"probeNetwork - default - end", | ||
4, | ||
247582 | ||
], | ||
[ | ||
"probeNetwork - default - start", | ||
0, | ||
0 | ||
] | ||
], | ||
"gfx": [ | ||
[ | ||
"probeGFX - default - end", | ||
2, | ||
6, | ||
13, | ||
1, | ||
[ | ||
28480, | ||
28480 | ||
], | ||
[ | ||
46, | ||
46 | ||
], | ||
[ | ||
384, | ||
384 | ||
] | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.