summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-27 01:28:07 +0100
committerTao Bao <tbao@google.com>2018-11-27 07:46:19 +0100
commitdd78982d580aa61c39bfd13940140e5830f489b2 (patch)
tree6a59978781611cd0c24123b5705ceae9b46cf3c6 /minui/graphics_fbdev.h
parentMerge "minui: Fix a wrong arg in calling GRSurface::Create()." (diff)
downloadandroid_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.gz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.bz2
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.lz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.xz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.zst
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics_fbdev.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/minui/graphics_fbdev.h b/minui/graphics_fbdev.h
index 016ab88bc..596ba74ea 100644
--- a/minui/graphics_fbdev.h
+++ b/minui/graphics_fbdev.h
@@ -17,6 +17,7 @@
#pragma once
#include <linux/fb.h>
+#include <stddef.h>
#include <stdint.h>
#include <memory>
@@ -30,8 +31,8 @@
class GRSurfaceFbdev : public GRSurface {
public:
// Creates and returns a GRSurfaceFbdev instance, or nullptr on error.
- static std::unique_ptr<GRSurfaceFbdev> Create(int width, int height, int row_bytes,
- int pixel_bytes);
+ static std::unique_ptr<GRSurfaceFbdev> Create(size_t width, size_t height, size_t row_bytes,
+ size_t pixel_bytes);
uint8_t* data() override {
return buffer_;