summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_display_primary.cpp
diff options
context:
space:
mode:
authorRajavenu Kyatham <rkyatham@codeaurora.org>2018-02-14 21:53:41 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-08 02:20:35 -0800
commitda3000d1b828c0df3b18ea79447b52d6e71eb423 (patch)
treeef39f42cef3a222b3dc6507abe4aec44ae5e9edf /sdm/libs/hwc2/hwc_display_primary.cpp
parent58d0e0f0838d36a22d5a01a1682f1cbc7e1fe2dc (diff)
downloaddisplay-da3000d1b828c0df3b18ea79447b52d6e71eb423.tar.gz
hwc2: avoid flush on command mode with secure display
- set validate if layer stack is empty, to support flush. Change-Id: I937b6346617bb25a49aa93b10b85da66ec6753d4 CRs-fixed: 2185452
Diffstat (limited to 'sdm/libs/hwc2/hwc_display_primary.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_display_primary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index 1f2fdf64..be05e0a3 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved.
+* Copyright (c) 2014 - 2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -210,7 +210,8 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n
// Avoid flush for Command mode panel.
DisplayConfigFixedInfo display_config;
display_intf_->GetConfig(&display_config);
- flush_ = !display_config.is_cmdmode;
+ flush_ = !(display_config.is_cmdmode && secure_display_active_);
+ validated_ = true;
return status;
}