diff options
author | Mikko Pulkki <mikko.pulkki@mapbox.com> | 2019-10-15 12:03:04 +0300 |
---|---|---|
committer | Mikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com> | 2019-10-30 14:32:27 +0200 |
commit | a7a7e8cbe29e672d020db1d150e887f33d584a2d (patch) | |
tree | 1c686fb6b2a91e0ef70d62b129545c1077e15a7f /test/api | |
parent | fb062bb23e66af3d5a889b767aae380884b259e5 (diff) | |
download | qtlocation-mapboxgl-a7a7e8cbe29e672d020db1d150e887f33d584a2d.tar.gz |
[render-test] Implement gfx probe for tracking gpu resources
Diffstat (limited to 'test/api')
-rw-r--r-- | test/api/annotations.test.cpp | 3 | ||||
-rw-r--r-- | test/api/custom_geometry_source.test.cpp | 2 | ||||
-rw-r--r-- | test/api/custom_layer.test.cpp | 2 | ||||
-rw-r--r-- | test/api/recycle_map.cpp | 4 |
4 files changed, 5 insertions, 6 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp index 03330dc4c6..4886d90a93 100644 --- a/test/api/annotations.test.cpp +++ b/test/api/annotations.test.cpp @@ -33,8 +33,7 @@ public: MapOptions().withMapMode(MapMode::Static).withSize(frontend.getSize())}; void checkRendering(const char * name) { - test::checkImage(std::string("test/fixtures/annotations/") + name, - frontend.render(map), 0.0002, 0.1); + test::checkImage(std::string("test/fixtures/annotations/") + name, frontend.render(map).image, 0.0002, 0.1); } }; diff --git a/test/api/custom_geometry_source.test.cpp b/test/api/custom_geometry_source.test.cpp index f35b4d335c..93cf6ba56e 100644 --- a/test/api/custom_geometry_source.test.cpp +++ b/test/api/custom_geometry_source.test.cpp @@ -64,5 +64,5 @@ TEST(CustomGeometrySource, Grid) { layer->setLineColor(Color{ 1.0, 1.0, 1.0, 1.0 }); map.getStyle().addLayer(std::move(layer)); - test::checkImage("test/fixtures/custom_geometry_source/grid", frontend.render(map), 0.0006, 0.1); + test::checkImage("test/fixtures/custom_geometry_source/grid", frontend.render(map).image, 0.0006, 0.1); } diff --git a/test/api/custom_layer.test.cpp b/test/api/custom_layer.test.cpp index 175d053f93..2222645147 100644 --- a/test/api/custom_layer.test.cpp +++ b/test/api/custom_layer.test.cpp @@ -108,5 +108,5 @@ TEST(CustomLayer, Basic) { layer->setFillColor(Color{ 1.0, 1.0, 0.0, 1.0 }); map.getStyle().addLayer(std::move(layer)); - test::checkImage("test/fixtures/custom_layer/basic", frontend.render(map), 0.0006, 0.1); + test::checkImage("test/fixtures/custom_layer/basic", frontend.render(map).image, 0.0006, 0.1); } diff --git a/test/api/recycle_map.cpp b/test/api/recycle_map.cpp index b3c573b1a2..be7bb77b4c 100644 --- a/test/api/recycle_map.cpp +++ b/test/api/recycle_map.cpp @@ -45,10 +45,10 @@ TEST(API, RecycleMapUpdateImages) { // default marker loadStyle("default_marker", "test/fixtures/sprites/default_marker.png"); - test::checkImage("test/fixtures/recycle_map/default_marker", frontend.render(*map), 0.0006, 0.1); + test::checkImage("test/fixtures/recycle_map/default_marker", frontend.render(*map).image, 0.0006, 0.1); // flipped marker loadStyle("flipped_marker", "test/fixtures/sprites/flipped_marker.png"); - test::checkImage("test/fixtures/recycle_map/flipped_marker", frontend.render(*map), 0.0006, 0.1); + test::checkImage("test/fixtures/recycle_map/flipped_marker", frontend.render(*map).image, 0.0006, 0.1); } |