commit | 946eb0209562bda3cd99d0d0c6119e69e2ac3099 | [log] [tgz] |
---|---|---|
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | Fri Oct 25 23:38:52 2013 +0100 |
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | Fri Oct 25 23:38:52 2013 +0100 |
tree | f402afd3aaff717363db1b092e4bcfc2b2224367 | |
parent | 708e7c7a15a358db429eeeaba2c3a1e39765ecec [diff] |
gralloc: Allow any process to have multiple buffer handles Change-Id: I670ff7e03b19c07094b506a4422f99c30f06db0e
diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp index 2110f8d..05df8d1 100644 --- a/exynos4/hal/libgralloc_ump/alloc_device.cpp +++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp
@@ -240,7 +240,7 @@ private_handle_rect *psFRect; psRect = (private_handle_rect *)calloc(1, sizeof(private_handle_rect)); psRect->handle = (int)hnd->ump_id; - psRect->stride = (int)hnd->stride_raw; + psRect->stride = stride_raw; psFRect = find_last_rect((int)hnd->ump_id); psFRect->next = psRect; }
diff --git a/exynos4/hal/libgralloc_ump/gralloc_module.cpp b/exynos4/hal/libgralloc_ump/gralloc_module.cpp index 27a930d..3bbb831 100644 --- a/exynos4/hal/libgralloc_ump/gralloc_module.cpp +++ b/exynos4/hal/libgralloc_ump/gralloc_module.cpp
@@ -223,8 +223,6 @@ psFRect->next = psRect; } #endif - if (hnd->pid == getpid()) - return 0; if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) err = gralloc_map(module, handle, &vaddr);