summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorBaldev Sahu <bsahu@codeaurora.org>2015-11-24 15:44:13 +0530
committerSteve Kondik <steve@cyngn.com>2015-12-08 01:13:54 -0800
commit21145beae7141e1286c9318eaba79d3c791de2c7 (patch)
tree3aa79c877fea6cc14a08d18262714c7625aef66e /services
parent4951bcc16e99daafc44581e4222f012f9d419ae0 (diff)
downloadframeworks_native-21145beae7141e1286c9318eaba79d3c791de2c7.zip
frameworks_native-21145beae7141e1286c9318eaba79d3c791de2c7.tar.gz
frameworks_native-21145beae7141e1286c9318eaba79d3c791de2c7.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 1ee7242..2549863 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -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();