summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-03 22:16:56 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-03 22:16:56 +0100
commit9cdde0d0b41e4d0d1187e7b664f97b00a9a3e4af (patch)
treed42437d9f993f97cb90f6a06eb22babc9ce0bf98 /libs
parentf792059f3a98e55435b221c899c04dbb4103aef7 (diff)
downloadframeworks_native-9cdde0d0b41e4d0d1187e7b664f97b00a9a3e4af.zip
frameworks_native-9cdde0d0b41e4d0d1187e7b664f97b00a9a3e4af.tar.gz
frameworks_native-9cdde0d0b41e4d0d1187e7b664f97b00a9a3e4af.tar.bz2
libui: exynos4: apply FIMC usage flag on format HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED
Change-Id: I8a98e593cb60d0843e83a5e431142410e26d82e7
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/GraphicBufferAllocator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ui/GraphicBufferAllocator.cpp b/libs/ui/GraphicBufferAllocator.cpp
index 7d6507d..c1b246f 100644
--- a/libs/ui/GraphicBufferAllocator.cpp
+++ b/libs/ui/GraphicBufferAllocator.cpp
@@ -103,9 +103,10 @@ status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat forma
status_t err;
#ifdef EXYNOS4_ENHANCEMENTS
- if ((format == 0x101) || (format == 0x105)) {
+ if ((format == 0x101) || (format == 0x105) || (format == 0x107)) {
// 0x101 = HAL_PIXEL_FORMAT_YCbCr_420_P (Samsung-specific pixel format)
// 0x105 = HAL_PIXEL_FORMAT_YCbCr_420_SP (Samsung-specific pixel format)
+ // 0x107 = HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED (Samsung-specific pixel format)
usage |= GRALLOC_USAGE_HW_FIMC1; // Exynos HWC wants FIMC-friendly memory allocation
}
#endif