summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXpLoDWilD <xplodgui@gmail.com>2012-09-18 20:08:31 +0200
committerXpLoDWilD <xplodgui@gmail.com>2012-09-18 20:23:32 +0200
commitab74c2d4d3265eea64dd4fb593371fa07120be16 (patch)
tree4e9ace9d4df378d2c17f679d7932a86a1f090f91
parent56fae2a00595ddf5b97e1faedb5e99b063e0903c (diff)
downloadandroid_frameworks_native-ab74c2d4d3265eea64dd4fb593371fa07120be16.tar.gz
android_frameworks_native-ab74c2d4d3265eea64dd4fb593371fa07120be16.tar.bz2
android_frameworks_native-ab74c2d4d3265eea64dd4fb593371fa07120be16.zip
i9300: Clean up a bit usage flag hack
Change-Id: I355375e5d65381b4a256dbf934dacf6b2b935b98
-rw-r--r--libs/ui/GraphicBufferAllocator.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ui/GraphicBufferAllocator.cpp b/libs/ui/GraphicBufferAllocator.cpp
index 192083aaa..eb733ac61 100644
--- a/libs/ui/GraphicBufferAllocator.cpp
+++ b/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