summaryrefslogtreecommitdiffstats
path: root/minui/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-10-31 23:23:04 +0100
committerTao Bao <tbao@google.com>2018-11-01 20:14:46 +0100
commit63b59dceadcce2c31b617e884941bf26b2730eb0 (patch)
treeab4b045819468d3ea82af956c27a1e2892260d45 /minui/include
parentMerge changes I69ce001a,I14514017,I8e67cda7 (diff)
downloadandroid_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar.gz
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar.bz2
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar.lz
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar.xz
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.tar.zst
android_bootable_recovery-63b59dceadcce2c31b617e884941bf26b2730eb0.zip
Diffstat (limited to 'minui/include')
-rw-r--r--minui/include/minui/minui.h4
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);
};