diff options
author | Andriy Naborskyy <andriyn@google.com> | 2016-01-08 10:11:41 -0800 |
---|---|---|
committer | Andriy Naborskyy <andriyn@google.com> | 2016-01-08 10:15:57 -0800 |
commit | a5d5082222b7420801cdb77f09305dd4c3afb4db (patch) | |
tree | 0b342f5938b9d0c64f962e6b93c406773ebd08b5 | |
parent | cde720797f55ca3ca1bfc82b7b928447c37e7656 (diff) | |
download | bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.zip bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.gz bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.bz2 |
Revert "Byte swap to support BGRA in recovery mode"
This reverts commit e5879c3639789d61803605c12371a4f291e0b3cc.
The swap in page flip code is not needed any more.
New changes take care of ABGR and BGRA formats swapping bytes in
png and drawing routines
See commit fd778e3e406a7e83536ea66776996f032f24af64
Bug: 26243152
Change-Id: I313ee41bee2c143b4e5412515285a65ac394ec77
-rw-r--r-- | minui/graphics_fbdev.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp index 997e9ca..0788f75 100644 --- a/minui/graphics_fbdev.cpp +++ b/minui/graphics_fbdev.cpp @@ -176,18 +176,6 @@ static GRSurface* fbdev_init(minui_backend* backend) { static GRSurface* fbdev_flip(minui_backend* backend __unused) { if (double_buffered) { -#if defined(RECOVERY_BGRA) - // In case of BGRA, do some byte swapping - unsigned int idx; - unsigned char tmp; - unsigned char* ucfb_vaddr = (unsigned char*)gr_draw->data; - for (idx = 0 ; idx < (gr_draw->height * gr_draw->row_bytes); - idx += 4) { - tmp = ucfb_vaddr[idx]; - ucfb_vaddr[idx ] = ucfb_vaddr[idx + 2]; - ucfb_vaddr[idx + 2] = tmp; - } -#endif // Change gr_draw to point to the buffer currently displayed, // then flip the driver so we're displaying the other buffer // instead. |