summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-05-13 17:13:31 -0700
committerKonstantin Käfer <mail@kkaefer.com>2019-05-15 11:57:43 -0700
commit3a6ff7710fcf201f82ddc2090488ef585bd8ab17 (patch)
treede380cbb7f5553282b081dce9202cbe9e502ebe5 /include
parentbf0998697e0893d8a56421a139c7fc4855e89fa5 (diff)
downloadqtlocation-mapboxgl-3a6ff7710fcf201f82ddc2090488ef585bd8ab17.tar.gz
[core] add gfx::UploadPass, split startRender into prepare and upload
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/gfx/renderable.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/gfx/renderable.hpp b/include/mbgl/gfx/renderable.hpp
index 3a973e6693..1aca5a789d 100644
--- a/include/mbgl/gfx/renderable.hpp
+++ b/include/mbgl/gfx/renderable.hpp
@@ -23,6 +23,7 @@ protected:
Renderable(const Size size_, std::unique_ptr<RenderableResource> resource_)
: size(size_), resource(std::move(resource_)) {
}
+ virtual ~Renderable() = default;
public:
Size getSize() const {
@@ -35,6 +36,8 @@ public:
return static_cast<T&>(*resource);
}
+ virtual void wait() {}
+
protected:
Size size;
std::unique_ptr<RenderableResource> resource;