summaryrefslogtreecommitdiffstats
path: root/minui/graphics_drm.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-01 19:37:33 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-11-01 19:37:33 +0100
commitd2e1c0a981c1069b9a8b3f89d1da560cecdc30da (patch)
treedc0e8b221eeb6154bdc661a68fa2b331ade0ac28 /minui/graphics_drm.h
parentMerge "Refactor the code to check the metadata" (diff)
parentminui: Remove the default and copy ctors for GRSurface. (diff)
downloadandroid_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar.gz
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar.bz2
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar.lz
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar.xz
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.tar.zst
android_bootable_recovery-d2e1c0a981c1069b9a8b3f89d1da560cecdc30da.zip
Diffstat (limited to 'minui/graphics_drm.h')
-rw-r--r--minui/graphics_drm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/minui/graphics_drm.h b/minui/graphics_drm.h
index 02db89f05..6ba46e60b 100644
--- a/minui/graphics_drm.h
+++ b/minui/graphics_drm.h
@@ -20,7 +20,6 @@
#include <memory>
-#include <android-base/macros.h>
#include <xf86drmMode.h>
#include "graphics.h"
@@ -28,7 +27,6 @@
class GRSurfaceDrm : public GRSurface {
public:
- explicit GRSurfaceDrm(int drm_fd) : drm_fd_(drm_fd) {}
~GRSurfaceDrm() override;
// Creates a GRSurfaceDrm instance.
@@ -41,13 +39,14 @@ class GRSurfaceDrm : public GRSurface {
private:
friend class MinuiBackendDrm;
+ GRSurfaceDrm(int width, int height, int row_bytes, int pixel_bytes, int drm_fd, uint32_t handle)
+ : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {}
+
const int drm_fd_;
uint32_t fb_id{ 0 };
uint32_t handle{ 0 };
uint8_t* mmapped_buffer_{ nullptr };
-
- DISALLOW_COPY_AND_ASSIGN(GRSurfaceDrm);
};
class MinuiBackendDrm : public MinuiBackend {