Merge "hwc: Do not set Secure flags for UI layers"
diff --git a/libhwcomposer/hwc_fbupdate.cpp b/libhwcomposer/hwc_fbupdate.cpp
index e0331ad..18f75eb 100644
--- a/libhwcomposer/hwc_fbupdate.cpp
+++ b/libhwcomposer/hwc_fbupdate.cpp
@@ -22,7 +22,6 @@
#include <gralloc_priv.h>
#include <fb_priv.h>
#include "hwc_fbupdate.h"
-#include "external.h"
namespace qhwc {
@@ -80,10 +79,6 @@
mDest = dest;
ovutils::eMdpFlags mdpFlags = ovutils::OV_MDP_FLAGS_NONE;
- if(ctx->mSecureMode) {
- ovutils::setMdpFlags(mdpFlags,
- ovutils::OV_MDP_SECURE_OVERLAY_SESSION);
- }
ovutils::PipeArgs parg(mdpFlags,
info,
@@ -130,7 +125,7 @@
ovutils::eDest dest = mDest;
private_handle_t *hnd = (private_handle_t *)layer->handle;
if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) {
- ALOGE("%s: queueBuffer failed for external", __FUNCTION__);
+ ALOGE("%s: queueBuffer failed for FBUpdate", __FUNCTION__);
ret = false;
}
return ret;
@@ -184,10 +179,6 @@
mDestRight = destR;
ovutils::eMdpFlags mdpFlagsL = ovutils::OV_MDP_FLAGS_NONE;
- if(ctx->mSecureMode) {
- ovutils::setMdpFlags(mdpFlagsL,
- ovutils::OV_MDP_SECURE_OVERLAY_SESSION);
- }
ovutils::PipeArgs pargL(mdpFlagsL,
info,