OSDN Git Service

gralloc: Adds a new inline method map_usage_to_memtrack.
authorRuchi Kandoi <kandoiruchi@google.com>
Wed, 30 Mar 2016 01:23:39 +0000 (18:23 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Tue, 10 May 2016 16:57:53 +0000 (16:57 +0000)
commit4cb6c4ff1f4f4908a73354b916a91de5933f4a9f
tree1ac5c6f45172e2b518b25ed4fe19547f4f5731c8
parentca2bbf419f76c27dc37e7b806305ccf6bf09992d
gralloc: Adds a new inline method map_usage_to_memtrack.

map_usage_to_memtrack takes in the gralloc usage flag and returns a
const char pointer containing the memtrack tag.

This function should be used to find the appropriate memtrack tag that
needs to be used after allocating buffers. This will help in-kernel
memtrack module to classify memory into pre-defined buckets.

Bug: 27525688
Change-Id: Ieee868f9b90ab170c16ba80aceedcb3b2e3762df
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
include/hardware/gralloc.h