Merge "hwc2: avoid flush on command mode with secure display"

This commit is contained in:
Linux Build Service Account
2018-03-08 16:02:02 -08:00
committed by Gerrit - the friendly Code Review server

View File

@@ -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;
}