SurfaceFlinger: Add support for MDP3

This change is porting of below commits related to MDP3

In MDP3 we are using the widevine level3 for secure content
display. And this should applicable only for primary display
not for screen shot or screen recording
- CRs-Fixed: 595469
- Change-Id: I99be2d81287ab746d5c4a2375c3106c59e61a8fc

Change-Id: Ie7ac95e1c03eb7ad6f71098ecf09a1e25e69760f
This commit is contained in:
Baldev Sahu 2015-11-24 15:44:13 +05:30 committed by Steve Kondik
parent 4951bcc16e
commit 21145beae7
1 changed files with 2 additions and 2 deletions

View File

@ -666,8 +666,8 @@ void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
bool blackOutLayer = isProtected() || (isSecure() && !hw->isSecure());
RenderEngine& engine(mFlinger->getRenderEngine());
if (!blackOutLayer || canAllowGPUForProtected()) {
if (!blackOutLayer ||
((hw->getDisplayType() == HWC_DISPLAY_PRIMARY) && canAllowGPUForProtected())) {
// TODO: we could be more subtle with isFixedSize()
const bool useFiltering = getFiltering() || needsFiltering(hw) || isFixedSize();