Permalink
Browse files

i9300: Clean up a bit usage flag hack

Change-Id: I355375e5d65381b4a256dbf934dacf6b2b935b98
  • Loading branch information...
xplodwild authored and Whitehawkx committed Sep 18, 2012
1 parent b09bc8b commit 56b22d673d7ae1e7cd9f8f335575015b6e6ce55d
Showing with 7 additions and 2 deletions.
  1. +7 −2 libs/ui/GraphicBufferAllocator.cpp
@@ -114,8 +114,13 @@ status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h,
status_t err;
#ifdef EXYNOS4_ENHANCEMENTS
- if (format == 0x105)
- usage = 0x01002900; // just don't ask
+ if (format == 0x105) {
+ // 0x105 = HAL_PIXEL_FORMAT_YCbCr_420_SP (Samsung-specific pixel format)
+ usage = GRALLOC_USAGE_HW_FIMC1; // Samsung specific flag for video rendering
+ usage |= GRALLOC_USAGE_EXTERNAL_DISP;
+ usage |= GRALLOC_USAGE_HW_COMPOSER;
+ usage |= GRALLOC_USAGE_HW_TEXTURE;
+ }
#endif
#ifdef QCOM_HARDWARE

0 comments on commit 56b22d6

Please sign in to comment.