summaryrefslogtreecommitdiffstats
path: root/minui/graphics_adf.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-28 00:21:50 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-11-28 00:21:50 +0100
commita54b883607f774fb1e8df1183f421288b5faaf96 (patch)
tree6a59978781611cd0c24123b5705ceae9b46cf3c6 /minui/graphics_adf.h
parentMerge "minui: Fix a wrong arg in calling GRSurface::Create()." (diff)
parentminui: GRSurface::Create() computes data_size on its own. (diff)
downloadandroid_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar.gz
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar.bz2
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar.lz
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar.xz
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.tar.zst
android_bootable_recovery-a54b883607f774fb1e8df1183f421288b5faaf96.zip
Diffstat (limited to 'minui/graphics_adf.h')
-rw-r--r--minui/graphics_adf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/minui/graphics_adf.h b/minui/graphics_adf.h
index bf9842878..79d8d2acb 100644
--- a/minui/graphics_adf.h
+++ b/minui/graphics_adf.h
@@ -16,6 +16,7 @@
#pragma once
+#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
@@ -40,8 +41,8 @@ class GRSurfaceAdf : public GRSurface {
private:
friend class MinuiBackendAdf;
- GRSurfaceAdf(int width, int height, int row_bytes, int pixel_bytes, __u32 offset, __u32 pitch,
- int fd)
+ GRSurfaceAdf(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, __u32 offset,
+ __u32 pitch, int fd)
: GRSurface(width, height, row_bytes, pixel_bytes), offset(offset), pitch(pitch), fd(fd) {}
const __u32 offset;