Commit Graph

217 Commits

Author SHA1 Message Date
Ansis Brammanis
dfca8fb214 [core] fix opacity interpolation for composition expressions (#15738)
port https://github.com/mapbox/mapbox-gl-js/pull/8818
2019-10-02 13:49:33 -04:00
Juha Alanen
693a104220 [node] enable feature state tests 2019-09-18 14:29:15 +03:00
Thiago Marcos P. Santos
c507cc4c8a [build] Disable a test that requires a debug build
Overdraw debug layer is only available on debug builds.
2019-09-17 12:28:55 +03:00
Aleksandar Stojiljkovic
4ba1270dcc [core] DEMData: do decode on GPU (port mapbox/mapbox-gl-js#8694)
This is first part of work on porting mapbox/mapbox-gl-js#8694 - in follow up patch(es) it is required to remove CPU side copy using 2d canvas support on all supported platforms, similar to approach taken in gl.js  https://github.com/mapbox/mapbox-gl-js/pull/8694/files#diff-34dbe5f7de34dc4b9a8745dcde9bdc37R48

Decoding on CPU removed.
Padding is still done in DEMData() but, instead od doing it wwhile decoding, it is using memcpy to pad original values.

Rebase to latest mapbox-gl-js master and re-generate shaders.

Partly fixes: #15503
2019-08-30 11:18:55 +03:00
Mikhail Pozdnyakov
f365dcece4 [render tests] gl-native baseline for debug/collision- tests 2019-08-26 13:55:15 +03:00
Mikhail Pozdnyakov
d0529e7b19 [render test] mapbox-gl-native baseline for text-pitch-alignment tests 2019-08-21 17:07:05 +03:00
Alexander Shalamov
b1986ca51e [core] Unskip icon-text-fit render tests 2019-08-20 12:31:02 +03:00
Mikhail Pozdnyakov
8792e7c322 Enable text-variable-anchor/{pitched-rotated-debug|rotated-offset} render tests 2019-08-16 16:25:59 +03:00
zmiao
0f34eb7b25 Indroduce clusterProperty option for aggregation (#15287)
* indroduce clusterProperty option for aggregation

* remove unnecessary codes

* update geojson_option conversion

* fix reviewing findings
2019-08-16 15:03:48 +03:00
Alexander Shalamov
1cb30268d7 [core] Ignore updated icon-text-fit render tests 2019-08-15 18:25:10 +03:00
Alexander Shalamov
b330375aeb [core] Unskip text-rotate/with-offset fixed by #14932 2019-08-13 16:55:33 +03:00
Mikhail Pozdnyakov
0c0bee52cb Enable number format expression tests 2019-08-13 15:17:09 +03:00
Aleksandar Stojiljkovic
3852129d59 Enable render tests flaky on node-gcc8
We don't use node-gcc8 bot to run render tests and no need to have the tests ignored.
2019-08-07 10:39:04 +03:00
Aleksandar Stojiljkovic
8103a2b028 [core] Enable opaque pass for background layer. fix heatmap+background test.
Follow the approach from mapbox-gl-js for enabling opaque pass for background layer (same as for fill layer).

Fix combinations/heatmap-translucent--background-opaque render test.
2019-08-05 18:56:07 +03:00
Thiago Marcos P. Santos
1aa4776dc1 [tests] Bump GL JS to run render test for #15139
https://github.com/mapbox/mapbox-gl-js/pull/8510
2019-07-19 15:17:00 +02:00
Aleksandar Stojiljkovic
4d84e52ce2 Enable ignored but passing run-time styling tests (#6745) 2019-07-09 17:53:34 +02:00
Aleksandar Stojiljkovic
2c5528e691 Fix layers rendering after fill-extrusion
This fixes following issues:
* Fix some false passing combinations/fill-extrusion-translucent--XXXX tests
* Fix and enable other, failing but ignored, combinations/fill-extrusion-translucent--XXXX tests
* Fix rendering of layers that are on top of fill-extrusion layers

state.getProjMatrix(nearClippedProjMatrix, 100) caused that tests with size 64x64 were not
rendering fill extrusions: far plane calculated as 96.9 and near plane set to 100 was the cause.
near plane is changed from hardcoded 100 to depend on state.getCameraToCenterDistance() - producing
similar value but one that follows max zoom.

This caused that e.g. combinations/fill-extrusion-translucent--fill-opaque was falsely passing as
only fill-opaque layer got rendered.

combinations/fill-extrusion-translucent--XXXX tests expose regression https://github.com/mapbox/mapbox-gl-native/issues/14844#issuecomment-503600034 in #14844, #14779.

Fix (opaquePassCutoff, is3D) is ported from https://github.com/mapbox/mapbox-gl-js/pull/7821

Fixes: #14844, #14779, #15039
2019-07-09 15:13:38 +02:00
Bruno de Oliveira Abinader
3b0e5a59a2 [core] Implement C++ render test runner 2019-06-25 20:10:21 +03:00
Jason Wray
fc802daa62 [core] Ignore more flaky node render tests 2019-06-07 12:39:48 -07:00
Jason Wray
012e3931bf [core] Ignore flaky fill-pattern render tests 2019-06-04 10:43:44 -07:00
Juha Alanen
f9796d2a28 [core] Fix symbol rendering under opaque fill layers 2019-06-04 16:35:53 +03:00
Thiago Marcos P. Santos
d60df973a6 [tests] Removed passing tests from the ignore list 2019-05-23 18:05:54 +03:00
Ander Conselvan de Oliveira
d502b72449 [core] Pass legacy/categorical/*-default expression tests
Handle categorical function default value properly in conversion to
expreexpression so related tests pass.
2019-05-21 12:14:22 +03:00
Ander Conselvan de Oliveira
1e620d3bd8 [core] Fix legacy/{interval,exponential}/*-default expression tests
Consider the function default value in interval and exponential
functions conversion.
2019-05-21 12:14:22 +03:00
Ander Conselvan de Oliveira
343df18954 [core] Fix some of the legacy interval function expression tests
The tests for conversion of legacy interval functions to expressions
expects that the first stop in the "step" expression be omitted.
2019-05-21 12:14:22 +03:00
Ander Conselvan de Oliveira
33cfd080c2 [core] Fix most identity function with default legacy expression tests
Add handling of default value to the conversion of legacy identity
functions. The color and enum tests still don't pass though.
2019-05-21 12:14:22 +03:00
Ander Conselvan de Oliveira
80edc3b821 [node] Convert legacy functions to expressions in NodeExpression::Parse
In order to test the conversion from function to expressions using the
legacy tests in the expression test suite, parse function objects into
expressions in NodeExpression::Parse.

v2: Coding style fixes.
2019-05-21 12:14:22 +03:00
Konstantin Käfer
a53c88159f [core] upgrade mapbox-gl-js pin to the most recent version 2019-05-08 14:10:11 +02:00
Konstantin Käfer
20a807fdf3 [core] render extrusions directly in the main framebuffer 2019-05-08 12:25:22 +02:00
Alexander Shalamov
cd5f87e9d2 [core] Unskip symbol-sort-key render tests 2019-04-17 15:04:08 +03:00
Mikhail Pozdnyakov
94d8cb4f7f [core] Single line optimization for variable label placement 2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
106e592a55 Enable text-variable-anchor render tests 2019-03-29 16:18:41 +02:00
Alexander Shalamov
f84019cb89 [core, node] Use es5 syntax for imports in expressions tests
Instead of forcing ES6 module syntax, at this point, it is less
distruptive to fix expression tests to use ES5 import syntax.
2019-03-11 13:43:08 +02:00
Alexander Shalamov
debbd08ff0 Revert "[core] Use ES6 import / export syntax for node test harness"
This reverts commit c6598fc5da.
2019-03-11 13:43:08 +02:00
Alexander Shalamov
c6598fc5da [core] Use ES6 import / export syntax for node test harness 2019-03-08 16:53:01 +02:00
Mikhail Pozdnyakov
06a8ecdb17 Update mapbox-gl-js submodule to v0.53.0 2019-03-06 18:00:19 +02:00
Mikhail Pozdnyakov
be2a4a0189 Skip failing render tests 2019-03-05 14:04:52 +02:00
Vladimir Agafonkin
fdcfdaa8ee remove some outdated integration test ignores (#13800) 2019-01-28 20:08:01 +02:00
Bruno de Oliveira Abinader
369d1f005b [core] Do not consider X axis when constraining scale 2018-11-29 14:23:55 +02:00
Konstantin Käfer
8bf66ef7a7 [core] remove some uses of <iostream> and <sstream> 2018-10-23 12:23:40 +02:00
Ryan Hamley
0c6b1629ef [Core] Ensure queryRenderedFeatures accounts for icon-rotate (#13105) 2018-10-18 12:14:52 -07:00
Chris Loer
ce76bde13d [core] Initial implementation of 'format' expression 2018-10-15 13:15:46 -07:00
Bruno de Oliveira Abinader
19179e08bc [core] Do not constrain on X axis in ConstrainMode::HeightOnly 2018-10-02 06:16:13 -07:00
Chris Loer
ab8b6b74dc [test] Bump gl-js pin. 2018-09-19 14:54:38 -07:00
John Firebaugh
20adb486f7 [core] Make "to-number" of null behave as documented 2018-09-13 15:55:34 -07:00
John Firebaugh
b64b4cd1f7 [tests] Update mapbox-gl-js 2018-09-13 15:55:34 -07:00
Ander Conselvan de Oliveira
6367fcb2a8 [node] Ignore custom layer tests in node platform
Custom layers are not implemented in node platform so ignore tests that
require it.
2018-09-13 08:42:36 +03:00
Chris Loer
d735d89835 [core] Port "collision group" plumbing to gl-native.
[node] Hook up map-wide "crossSourceCollisions" option, defaulting to true.
[test] Pass "crossSourceCollisions" test option through test harness; enable cross-source-collisions tests on native.
2018-09-12 14:10:46 -07:00
Molly Lloyd
4cf6138e38 [test] ignore legacy expression tests 2018-08-31 13:08:47 -07:00
Molly Lloyd
2cdbe934c2 [windows, qt] fix windows compiler errors, remove tao + tuple polyfill 2018-08-31 13:08:47 -07:00