From a361ce47a19d37b96b48cd605c62c5ab79bba462 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Mon, 18 Jan 2016 17:08:55 +0200 Subject: [linux] Added WebP tile support - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354 --- include/mbgl/util/image.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mbgl/util') diff --git a/include/mbgl/util/image.hpp b/include/mbgl/util/image.hpp index fde42c7c5e..7927b777ea 100644 --- a/include/mbgl/util/image.hpp +++ b/include/mbgl/util/image.hpp @@ -21,6 +21,11 @@ public: height(h), data(std::make_unique(size())) {} + Image(size_t w, size_t h, std::unique_ptr data_) + : width(w), + height(h), + data(std::move(data_)) {} + size_t stride() const { return width * 4; } size_t size() const { return width * height * 4; } -- cgit v1.2.1