diff options
Diffstat (limited to 'minui/include')
-rw-r--r-- | minui/include/minui/minui.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h index d6881e9a0..0b499e621 100644 --- a/minui/include/minui/minui.h +++ b/minui/include/minui/minui.h @@ -40,6 +40,9 @@ class GRSurface { static std::unique_ptr<GRSurface> Create(int width, int height, int row_bytes, int pixel_bytes, size_t data_size); + // Clones the current GRSurface instance (i.e. an image). + std::unique_ptr<GRSurface> Clone() const; + virtual uint8_t* data() { return data_; } @@ -59,6 +62,7 @@ class GRSurface { private: uint8_t* data_{ nullptr }; + size_t data_size_; DISALLOW_COPY_AND_ASSIGN(GRSurface); }; |