Skip to content
Snippets Groups Projects
Commit ca092654 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Add support for benchmarking framebuffer readback on Android devices

parent 3f26a640
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ static void *mmap_framebuffer(size_t *fbsize)
struct fb_fix_screeninfo finfo;
if ((fd = open("/dev/fb0", O_RDWR)) == -1)
return NULL;
if ((fd = open("/dev/graphics/fb0", O_RDWR)) == -1)
return NULL;
if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo))
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment