summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_session_services.cpp
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2017-11-09 15:08:31 -0500
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-15 08:35:52 -0800
commita699e79e10ce3456597b542341129fb92dad042e (patch)
tree14d9870dc298b0e48183959a4bf9388456d0df2c /sdm/libs/hwc2/hwc_session_services.cpp
parentb2a2ac954485d5850d5258de40e5ca13490d9049 (diff)
downloaddisplay-a699e79e10ce3456597b542341129fb92dad042e.tar.gz
hwc2: Add support for disabling external animation
CRs-Fixed: 2141089 Change-Id: I8ef40d359d0076ee02e08b11a9f270db8ad62897
Diffstat (limited to 'sdm/libs/hwc2/hwc_session_services.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_session_services.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_session_services.cpp b/sdm/libs/hwc2/hwc_session_services.cpp
index 64ac57c2..0fbba4d0 100644
--- a/sdm/libs/hwc2/hwc_session_services.cpp
+++ b/sdm/libs/hwc2/hwc_session_services.cpp
@@ -506,4 +506,14 @@ Return<void> HWCSession::displayBWTransactionPending(displayBWTransactionPending
return Void();
}
+#ifdef DISPLAY_CONFIG_1_1
+// Methods from ::vendor::hardware::display::config::V1_1::IDisplayConfig follow.
+Return<int32_t> HWCSession::setDisplayAnimating(uint64_t display_id, bool animating ) {
+ SEQUENCE_WAIT_SCOPE_LOCK(locker_[display_id]);
+ return CallDisplayFunction(static_cast<hwc2_device_t *>(this), display_id,
+ &HWCDisplay::SetDisplayAnimating, animating);
+}
+#endif
+
+
} // namespace sdm