diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2014-12-19 16:25:09 -0500 |
---|---|---|
committer | Naseer Ahmed <naseer@codeaurora.org> | 2015-03-19 13:39:21 -0400 |
commit | 8d0d72ad40e4296b4275a613823c261bc630d66d (patch) | |
tree | ba8f4cb729bd6e4949ca19a30d782aaa93834436 /libcopybit | |
parent | a0feb9650480a39a35f6dfa3c8a47766710bc5f0 (diff) | |
download | display-8d0d72ad40e4296b4275a613823c261bc630d66d.tar.gz |
gralloc: Deprecate old stuff.
1. Reclaim some old gralloc flags.
2. System heap allocation happens by default.
3. Remove some unused private flags.
4. Add heapid member to alloc_data to better line up with ion
header
5. Remove check for MDSS_TARGET
Change-Id: I37be0a2fcd5fd4a14bb9ca235fcae41f6f3ec19e
Diffstat (limited to 'libcopybit')
-rw-r--r-- | libcopybit/copybit_c2d.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libcopybit/copybit_c2d.cpp b/libcopybit/copybit_c2d.cpp index 3807f33a..cc13fec1 100644 --- a/libcopybit/copybit_c2d.cpp +++ b/libcopybit/copybit_c2d.cpp @@ -350,12 +350,7 @@ static size_t c2d_get_gpuaddr(copybit_context_t* ctx, if(!handle) return 0; - if (handle->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM | - private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP)) - memtype = KGSL_USER_MEM_TYPE_PMEM; - else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ASHMEM) - memtype = KGSL_USER_MEM_TYPE_ASHMEM; - else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ION) + if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ION) memtype = KGSL_USER_MEM_TYPE_ION; else { ALOGE("Invalid handle flags: 0x%x", handle->flags); @@ -1005,7 +1000,7 @@ static int get_temp_buffer(const bufferInfo& info, alloc_data& data) data.size = get_size(info); data.align = getpagesize(); data.uncached = true; - int allocFlags = GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP; + int allocFlags = 0; if (sAlloc == 0) { sAlloc = gralloc::IAllocController::getInstance(); |