Merge "gralloc1: Update SECURE_DISPLAY usage bit value"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
24682bf12b
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
|
||||||
* Not a Contribution
|
* Not a Contribution
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 The Android Open Source Project
|
* Copyright (C) 2010 The Android Open Source Project
|
||||||
@@ -407,7 +407,7 @@ int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usa
|
|||||||
flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE;
|
flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prod_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) {
|
if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) {
|
||||||
flags |= private_handle_t::PRIV_FLAGS_SECURE_DISPLAY;
|
flags |= private_handle_t::PRIV_FLAGS_SECURE_DISPLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
|
||||||
* Not a Contribution
|
* Not a Contribution
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008 The Android Open Source Project
|
* Copyright (C) 2008 The Android Open Source Project
|
||||||
@@ -66,7 +66,7 @@ inline int roundUpToPageSize(int x) {
|
|||||||
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_WFD 0x00200000
|
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_WFD 0x00200000
|
||||||
|
|
||||||
/* This flag is used for SECURE display usecase */
|
/* This flag is used for SECURE display usecase */
|
||||||
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY 0x01000000
|
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY 0x02000000
|
||||||
|
|
||||||
/* This flag is used to indicate P010 format */
|
/* This flag is used to indicate P010 format */
|
||||||
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_10BIT GRALLOC1_PRODUCER_USAGE_PRIVATE_10BIT
|
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_10BIT GRALLOC1_PRODUCER_USAGE_PRIVATE_10BIT
|
||||||
|
|||||||
Reference in New Issue
Block a user