gralloc1: Deprecate usage flags for internal/external only

Deprecate internal/external only usage flags that are no
longer needed.

Change-Id: Id4fc6d780ac98327befbd723b9e48356b834fb7f
CRs-Fixed: 2070081
This commit is contained in:
Rohit Kulkarni
2017-06-28 11:19:17 -07:00
committed by Gerrit - the friendly Code Review server
parent 017ca66d67
commit 04adc91d2c
2 changed files with 4 additions and 12 deletions

View File

@@ -410,14 +410,6 @@ uint32_t BufferManager::GetDataAlignment(int format, gralloc1_producer_usage_t p
int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage,
gralloc1_consumer_usage_t cons_usage) { gralloc1_consumer_usage_t cons_usage) {
int flags = 0; int flags = 0;
if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY) {
flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY;
}
if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY) {
flags |= private_handle_t::PRIV_FLAGS_INTERNAL_ONLY;
}
if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) {
flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER;
} }

View File

@@ -63,11 +63,11 @@ inline int roundUpToPageSize(int x) {
/* This flag is used for SECURE display usecase */ /* This flag is used for SECURE display usecase */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY 0x00800000 #define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY 0x00800000
/* Buffer content should be displayed on a primary display only */ /* Unused flag */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY 0x04000000 #define GRALLOC1_USAGE_PRIVATE_UNUSED1 0x04000000
/* Buffer content should be displayed on an external display only */ /* Unused flag */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY 0x08000000 #define GRALLOC1_USAGE_PRIVATE_UNUSED2 0x08000000
/* Legacy gralloc0.x definitions */ /* Legacy gralloc0.x definitions */