[render-test] Implement fps benchmarking tests (#15803)

This commit is contained in:
Mikko Pulkki
2019-10-22 12:13:55 +03:00
committed by GitHub
parent bb0e5ffb2c
commit 0ca96fd8a4
27 changed files with 424 additions and 124 deletions

View File

@@ -91,9 +91,10 @@ TEST(GLContextMode, Shared) {
util::RunLoop loop;
HeadlessFrontend frontend { 1, gfx::ContextMode::Shared };
HeadlessFrontend frontend{1, gfx::HeadlessBackend::SwapBehaviour::NoFlush, gfx::ContextMode::Shared};
Map map(frontend, MapObserver::nullObserver(),
Map map(frontend,
MapObserver::nullObserver(),
MapOptions().withMapMode(MapMode::Static).withSize(frontend.getSize()),
ResourceOptions().withCachePath(":memory:").withAssetPath("test/fixtures/api/assets"));
map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));