Merge "hwc: Handle layers marked as PROTECTED flag as secure"

This commit is contained in:
Linux Build Service Account
2015-06-13 19:51:06 -07:00
committed by Gerrit - the friendly Code Review server
3 changed files with 9 additions and 5 deletions

View File

@@ -1196,7 +1196,8 @@ void setListStats(hwc_context_t *ctx,
ctx->listStats[dpy].yuvIndices[i] = -1;
ctx->listStats[dpy].yuv4k2kIndices[i] = -1;
if (isSecureBuffer(hnd)) {
if (isSecureBuffer(hnd) || isProtectedBuffer(hnd)) {
// Protected Buffer must be treated as Secure Layer
ctx->listStats[dpy].isSecurePresent = true;
if(not isYuvBuffer(hnd)) {
// cache secureRGB layer parameters like we cache for YUV layers