summaryrefslogtreecommitdiffstats
path: root/minui/graphics_adf.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge up to android-8.1.0_r1 and fix conflictsEthan Yonker2017-12-151-1/+2
|\ | | | | | | Change-Id: I2dc060134d15ec9f015a606cb24ef8276f6af1fc
| * minui: Fix breakage in graphics_adf.Alistair Strachan2017-04-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | When graphics_adf was refactored in 557fa1f, a class member was introduced that was not initialized to zero. This meant that the first time Flip() was called, current_surface would have a junk value and cause a bad pointer rereference, crashing recovery. Make sure current_surface is initialized to 0 for the first Flip(). Test: Ran recovery on a device using the ADF backend. Change-Id: I9b8fac0a4d48cac990e5e9808a071c232de1ebfb
* | Update to AOSP 8.0 baseEthan Yonker2017-09-081-183/+135
|\| | | | | | | Change-Id: I29fe722b4eb9718765327902779046840a01433e
| * minui: Move graphics_{adf,drm,fbdev} into classes.Tao Bao2017-02-111-102/+60
| | | | | | | | | | | | | | | | 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
| * minui: Save errno before calling close().Tao Bao2017-02-091-1/+2
| | | | | | | | | | | | | | Otherwise errno would be overwritten when calling close(2). Test: mmma bootable/recovery Change-Id: I661e46b1b040f550639a728aa2683e91621b4307
| * minui: Clean up graphics_adf.cpp.Tao Bao2017-02-071-191/+156
| | | | | | | | | | | | | | | | | | Remove unneeded header includes. Switch a few memset() to '= {}' style. Otherwise mostly cosmetic changes like reformatting. Test: 'Run graphics test' on N9 (which is an ADF device). Change-Id: If008af18ddae9521f53216b581d882d5eed76d41
| * Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-161-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: Iaffd537784aa857108f6981fdfd82d0496eb5592 Merged-In: I151642d5a60c94f312d0611576ad0143c249ba3d
| * Recovery mode UI flickerxinglong.zhu2016-08-061-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [root cause ] miniui has no mechanism to protect the buffer which is displaying [changes ] recovery [side effects] ui show [self test ] sc9850-2 general operation has not display abnormal [reviewers ] xinglong.zhu Signed-off-by: xinglong.zhu <xinglong.zhu@spreadtrum.com> [change_type ] AOB --> google_original [tag_product ] common Change-Id: I989a0b2943ff6070a0e98718cfbe95144510d3a2
| * Keep ADF device alive for the lifetime of the minui backendJonathan Hamilton2016-05-061-6/+8
| | | | | | | | | | | | | | | | Some ADF drivers do some amount of state cleanup when the ADF device node is closed, making and attempts to draw using it fail. This changes the minui ADF backend to keep the adf_device open until it is exited, fixing issues on such devices.
* | Add support for RGBA_8888 pixel formatKra1o52015-10-141-0/+2
|/ | | | Change-Id: Ia15d49e51cad5bc8a3291975e1ff515a2b1c419c
* Don't use typedefs that hide *s.Elliott Hughes2015-04-151-4/+4
| | | | | | gr_surface was causing confusion for no good reason. Change-Id: If7120187f9a00dd16297877fc49352185a4d4ea6
* Switch minui over to C++.Elliott Hughes2015-04-101-0/+249
Change-Id: I59e08a304ae514a3fdb6fab58721f11670bc1b01