display: Use GRALLOC_USAGE_PROTECTED to indicate secure content
For secure content, use GRALLOC_USAGE_PROTECTED flag instead of the obsolete flag GRALLOC_USAGE_PRIVATE_CP_BUFFER. Change-Id: I69bf8cfd3a978fd472608beb44056e1bf55c1414
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
8714496fd4
commit
7651a80dc9
@@ -252,8 +252,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
|
||||
// All buffers marked as protected or for external
|
||||
// display need to go to overlay
|
||||
if ((usage & GRALLOC_USAGE_EXTERNAL_DISP) ||
|
||||
(usage & GRALLOC_USAGE_PROTECTED) ||
|
||||
(usage & GRALLOC_USAGE_PRIVATE_CP_BUFFER)) {
|
||||
(usage & GRALLOC_USAGE_PROTECTED)) {
|
||||
bufferType = BUFFER_TYPE_VIDEO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user