summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_layers.cpp
diff options
context:
space:
mode:
authorPullakavi Srinivas <spullaka@codeaurora.org>2018-09-11 14:13:05 +0530
committerRavikanth Tuniki <rtunik@codeaurora.org>2019-04-01 19:54:28 +0530
commitfa6cb26ba1f8de37c50a4cc2c6d7056e0002e482 (patch)
tree08ee26ce437eb9b0fc0a718830f5884cac1011f2 /sdm/libs/hwc2/hwc_layers.cpp
parent4100bd3f2ce9862edac28870a28e65b1e9bfb72d (diff)
sdm: Add mask layer flag support to input buffer flags.
Set DISABLE_MASK_LAYER_HINT property to disable this hint. Change-Id: I526025e2c32d386877b4b0b70c6423642421213f CRs-Fixed: 2396411
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_layers.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index 36516bb4..a41f24c1 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -1040,4 +1040,9 @@ void HWCLayer::SetDirtyRegions(hwc_region_t surface_damage) {
}
}
+void HWCLayer::SetLayerAsMask() {
+ layer_->input_buffer.flags.mask_layer = true;
+ DLOGV_IF(kTagClient, " Layer Id: ""[%" PRIu64 "]", id_);
+}
+
} // namespace sdm