summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-02 17:34:49 +0100
committerTao Bao <tbao@google.com>2018-11-02 17:35:08 +0100
commitf65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8 (patch)
treec19d37fa8afc0b6b1ce5e3810b03f5583b0bcb22 /minui/graphics_fbdev.h
parentMerge "minui: Add GRSurface::Clone()." (diff)
downloadandroid_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar.gz
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar.bz2
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar.lz
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar.xz
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.tar.zst
android_bootable_recovery-f65d48bb5ac611a9dbfba150cfdb0bfc5fd6aaf8.zip
Diffstat (limited to 'minui/graphics_fbdev.h')
-rw-r--r--minui/graphics_fbdev.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/minui/graphics_fbdev.h b/minui/graphics_fbdev.h
index 934e584d7..016ab88bc 100644
--- a/minui/graphics_fbdev.h
+++ b/minui/graphics_fbdev.h
@@ -22,6 +22,8 @@
#include <memory>
#include <vector>
+#include <android-base/unique_fd.h>
+
#include "graphics.h"
#include "minui/minui.h"
@@ -48,7 +50,7 @@ class GRSurfaceFbdev : public GRSurface {
class MinuiBackendFbdev : public MinuiBackend {
public:
MinuiBackendFbdev() = default;
- ~MinuiBackendFbdev() override;
+ ~MinuiBackendFbdev() override = default;
GRSurface* Init() override;
GRSurface* Flip() override;
@@ -64,5 +66,5 @@ class MinuiBackendFbdev : public MinuiBackend {
std::vector<uint8_t> memory_buffer;
size_t displayed_buffer{ 0 };
fb_var_screeninfo vi;
- int fb_fd{ -1 };
+ android::base::unique_fd fb_fd;
};