summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.h
diff options
context:
space:
mode:
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;
};