[core] private OffscreenView implementation

This commit is contained in:
Konstantin Käfer
2017-02-24 16:03:31 +01:00
parent e3500c1f79
commit 9ca9adf69c
11 changed files with 86 additions and 57 deletions

View File

@@ -365,7 +365,7 @@ void NodeMap::startRender(NodeMap::RenderOptions options) {
const mbgl::Size fbSize{ static_cast<uint32_t>(options.width * pixelRatio),
static_cast<uint32_t>(options.height * pixelRatio) };
if (!view || view->size != fbSize) {
if (!view || view->getSize() != fbSize) {
view.reset();
view = std::make_unique<mbgl::OffscreenView>(backend.getContext(), fbSize);
}