summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge AOSP android-9.0.0_r3Ethan Yonker2018-08-241-237/+436
|\ | | | | | | | | | | Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
| * graphics: add rotation logicLuke Song2017-09-281-208/+251
| | | | | | | | | | | | | | Bug: 65556996 Bug: 63541890 Test: Tried 4 rotations, viewed logs and graphics test Change-Id: I2a6c18c28df03f0461663f63bf16db32c45211ec
* | minui: Only include graphics_adf.h if we do not build with MSM_BSPAndreas Schneider2017-11-291-0/+2
| | | | | | | | Change-Id: Id32a394d23ea5df986615855119912f765ebee99
* | Update to AOSP 8.0 baseEthan Yonker2017-09-081-115/+53
|\| | | | | | | Change-Id: I29fe722b4eb9718765327902779046840a01433e
| * Merge "minui: Move graphics_{adf,drm,fbdev} into classes." am: 0d14cc279c am: 6585a3c368 am: b8997adc20Tao Bao2017-02-131-40/+38
| |\ | | | | | | | | | | | | | | | am: 1cb8964aac Change-Id: I8b1fb8ba115f7313f7382b7669e35184eaea3a79
| | * minui: Move graphics_{adf,drm,fbdev} into classes.Tao Bao2017-02-111-40/+38
| | | | | | | | | | | | | | | | | | | | | | | | This CL defines minui_backend as an interface, and expresses the three backends (adf, drm and fbdev) as subclasses to the interface. Test: 'Run graphics test' on N9, Pixel C and N5X. Change-Id: I0e23951c7b2e2ff918957a8d9fc8b0085b6e5952
| * | Merge "minui: Minor clean up to graphics.cpp." am: b04bc0540d am: ec8d74580d am: 7d8e13a535Tao Bao2017-02-031-62/+1
| |\| | | | | | | | | | | | | | | | am: cdd7b47545 Change-Id: Ib8e921d63f067bdf3547419e072cdb1a7ad9f0fc
| | * minui: Minor clean up to graphics.cpp.Tao Bao2017-02-031-62/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded header includes. Remove the dead code in gr_test() (already commented out). Similar tests have been covered by the "Run graphics test" from recovery menu. Test: mmma -j32 bootable/recovery Change-Id: If977c1b780602f5c5054469a3dae4fd85f34ab1a
| * | Merge "minui: Export minui/minui.h." am: 13d15af08f am: ad20b76397 am: 54890af615Tao Bao2017-01-171-3/+3
| |\| | | | | | | | | | | | | | | | am: 397c6c5382 Change-Id: Ib72aea7ad125286d1d347ff3b25fb5f90c408bd3
| | * minui: Export minui/minui.h.Tao Bao2017-01-171-3/+3
| | | | | | | | | | | | | | | | | | | | | For libminui static and shared libraries. Test: build Change-Id: Ib30dc5e2ef4a3c8b3ca3a0cec68cb65e229a0c16
| * | Merge "Remove unnecessary uses of reinterpret_cast." am: c470dc8681 am: 849a911dee am: 6a6e54da04Rahul Chaudhry2016-11-161-1/+1
| |\| | | | | | | | | | | | | | | | am: 8ef4c38abe Change-Id: I795ab2874d6fc8c6087c89df72e7a2341e97e387
| | * Remove unnecessary uses of reinterpret_cast.Rahul Chaudhry2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: I66f8f6026ed732a504504ade93ff196dc8b727ca
| | * Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_cast is preferable to reinterpret_cast when casting from void* pointers returned by malloc/calloc/realloc/mmap calls. Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: Iaffd537784aa857108f6981fdfd82d0496eb5592 Merged-In: I151642d5a60c94f312d0611576ad0143c249ba3d
| | * Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-11-161-7/+15
| | | | | | | | | | | | | | | Change-Id: I8ccf369d52011bc5d07d8e041fe558ce734a78fc (cherry picked from commit d00f5eb63a8e4690f9bef1e943d539d052444d9b)
| | * Support use of custom fonts in miniuiDamien Bargiacchi2016-11-151-47/+55
| | | | | | | | | | | | | | | | | | Bug: 29547343 Change-Id: I398160c85daac90ffab2fa9bb2e96795b9e9885a (cherry picked from commit 35fff61b1c0d736d090a1cd1bb4e99141cc88ad8)
| * | Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_cast is preferable to reinterpret_cast when casting from void* pointers returned by malloc/calloc/realloc/mmap calls. Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: I151642d5a60c94f312d0611576ad0143c249ba3d
* | | Fix minui issues for some build treesEthan Yonker2017-06-061-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | In trees where TWRP is the primary recovery, minui.h was not setting rules properly for healthd because healthd uses clang. Must use CLANG_TARGET_GLOBAL_CFLAGS to set global flags. Change-Id: I4cd9c88f8fcaec345fe012d09abcb9f24be06ef4
* | | Update TWRP to AOSP 7.1.2Ethan Yonker2017-05-101-26/+126
|\| | | | | | | | | | | Change-Id: I19c1546efb4182aac62c690e3cc05b04e3a9a32e
| * | Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-09-091-7/+15
| | | | | | | | | | | | Change-Id: I8ccf369d52011bc5d07d8e041fe558ce734a78fc
| * | Support use of custom fonts in miniuiDamien Bargiacchi2016-08-191-47/+55
| |/ | | | | | | | | Bug: 29547343 Change-Id: I398160c85daac90ffab2fa9bb2e96795b9e9885a
* | ifdef overlay graphicsEthan Yonker2017-01-211-3/+5
| | | | | | | | Change-Id: If3173ddbfaccb95cc48636240ee3a918dac1e23f
* | minui: Fix gr_set_font() build issue on cm-13.0 tree.nailyk2016-08-231-0/+6
| | | | | | | | | | | | | | | | - Add a fake function which fill the vendor/cm/charger/healthd_board_cm.cpp requirements. Solve omnirom/android_bootable_recovery#84 issue. Change-Id: Ia9bf898006da7e4f4ee6a942584fe2dd3c88f8ba
* | minui: bring back custom font supportmaxwen2015-12-011-0/+5
| | | | | | | | Change-Id: I6cb97b236ff8ada46d270e99ab37656f5f1b73f8
* | Add qcom overlay graphics support to minuiEthan Yonker2015-10-141-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | graphics_overlay.cpp is based on a mix of AOSP code for graphics_fbdev.cpp along with overlay graphics code from CAF that was brought into earlier versions of TWRP and then further adapted and improved before being brought into this patch set. Also added a rule to build a minuitest binary for testing the minui engine to ensure proper operation on a device. Change-Id: I3972d3a6baa7002615319421ac07d9299c3cec69
* | Add 16bpp support to minuiEthan Yonker2015-10-141-25/+136
|/ | | | Change-Id: I9a9ba6ccbef999b1a4b122e45f862bd3672b5047
* Add drm support to minuiStéphane Marchesin2015-07-021-0/+5
| | | | | | | Bug: 22231636 Change-Id: I103c8e906b7dd9862b7bb89d8642268e9a3006b4 Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
* Don't use typedefs that hide *s.Elliott Hughes2015-04-151-1/+1
| | | | | | gr_surface was causing confusion for no good reason. Change-Id: If7120187f9a00dd16297877fc49352185a4d4ea6
* Move the menu header out of the menu.Elliott Hughes2015-04-141-1/+1
| | | | | | | | | | | This makes it easier for us to deal with arbitrary information at the top, and means that headers added by specific commands don't overwrite the default ones. Add the fingerprint back, but broken up so it fits even on sprout's display. Change-Id: Id71da79ab1aa455a611d72756a3100a97ceb4c1c
* Switch minui over to C++.Elliott Hughes2015-04-101-0/+406
Change-Id: I59e08a304ae514a3fdb6fab58721f11670bc1b01