Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

i9300: Clean up a bit usage flag hack

Change-Id: I355375e5d65381b4a256dbf934dacf6b2b935b98
  • Loading branch information...
commit 56b22d673d7ae1e7cd9f8f335575015b6e6ce55d 1 parent b09bc8b
@xplodwild xplodwild authored Whitehawkx committed
Showing with 7 additions and 2 deletions.
  1. +7 −2 libs/ui/GraphicBufferAllocator.cpp
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.