summaryrefslogtreecommitdiffstats
path: root/minuitwrp/graphics_utils.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-01-27Update minuitwrp graphics in line with latest minuiEthan Yonker1-2/+7
Note: events.cpp is still old code renamed to cpp to make it easier to call functions like gr_fb_width(). I had to modify AOSP fbdev code to provide a separate memory surface for drawing to as drawing directly to the framebuffer resulted in rendering taking about 5 times longer. I also modified AOSP adf code to provide a separate memory surface for drawing for the same performance reasons. The Nexus 9 supports adf graphics. Overlay graphics work on at least one device. Overlay provides a separate memory buffer already so performance is good. I do not have a drm device yet that I know of. I made some attempt to update the drm code to determine the correct pixel format based on the drm graphics format, but what is available in pixel flinger and what is available in drm do not line up all that well. Reports are that the Pixel C is using drm graphics, but performance is slow, likely due to the use of a mmap instead of a memory buffyer. Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
2015-06-17minuitwrp: fix crash when taking a screenshot.xiaolu1-6/+12
when "gr_mem_surface.format = GGL_PIXEL_FORMAT_RGBA_8888", "gl->recti" will be crash. this is a simple fix. Change-Id: I39da7298286f34cdf7eae98f6b082c36695b222e
2015-03-05Address a few compiler warningsMatt Mower1-0/+1
Change-Id: I6e063fba8d58c8c53da6bca6292c84e3392aee50
2014-07-09Implement "take a screenshot" featureVojtech Bocek1-0/+106
* Like in android - press power+volume down, screenshots are saved in /sdcard/Pictures/Screenshots (if /sdcard is mounted) or /tmp Change-Id: Iaefa15b11a1d5fdfac57d77388db1621f378a8d4 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>