summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/png_reader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/png_reader.hpp')
-rw-r--r--include/mbgl/platform/default/png_reader.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/platform/default/png_reader.hpp b/include/mbgl/platform/default/png_reader.hpp
index 9d6af91daa..c869e78ea4 100644
--- a/include/mbgl/platform/default/png_reader.hpp
+++ b/include/mbgl/platform/default/png_reader.hpp
@@ -53,9 +53,7 @@ public:
~PngReader();
unsigned width() const;
unsigned height() const;
- inline bool hasAlpha() const { return has_alpha_; }
- bool premultipliedAlpha() const { return true; } // png_set_alpha_mode(png, PNG_ALPHA_PREMULTIPLIED, 2.2)
- void read(unsigned x,unsigned y, unsigned width, unsigned height, uint8_t* image);
+ std::unique_ptr<uint8_t[]> read();
private:
void init();
static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);