diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-10-06 13:23:50 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-10-25 13:52:36 -0700 |
commit | 5cc390d694fc7510d445310d8eb9e32429a5e67b (patch) | |
tree | 7a24706f919ac3e8154be8b4ce33aed5bf42188d /test/gl | |
parent | 45f4dc0166f2d609d014d2174209fdbe1994c943 (diff) | |
download | qtlocation-mapboxgl-5cc390d694fc7510d445310d8eb9e32429a5e67b.tar.gz |
[core] separate Backend from View for headless rendering
Diffstat (limited to 'test/gl')
-rw-r--r-- | test/gl/object.test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gl/object.test.cpp b/test/gl/object.test.cpp index 1a90cec83b..1f9d48cff7 100644 --- a/test/gl/object.test.cpp +++ b/test/gl/object.test.cpp @@ -1,6 +1,6 @@ #include <mbgl/test/util.hpp> -#include <mbgl/platform/default/headless_display.hpp> +#include <mbgl/platform/default/headless_backend.hpp> #include <mbgl/platform/default/headless_view.hpp> #include <mbgl/gl/gl.hpp> @@ -67,8 +67,8 @@ TEST(GLObject, Value) { } TEST(GLObject, Store) { - mbgl::HeadlessView view(std::make_shared<mbgl::HeadlessDisplay>(), 1); - view.activate(); + mbgl::HeadlessBackend backend; + mbgl::HeadlessView view; mbgl::gl::Context context; EXPECT_TRUE(context.empty()); @@ -106,5 +106,5 @@ TEST(GLObject, Store) { context.reset(); EXPECT_TRUE(context.empty()); - view.deactivate(); + backend.deactivate(); } |