drm_hwcomposer: Handle headless display in SetConfig
For the headless display case, set the active config and early out to avoid accessing a null pipeline. Change-Id: I064b23e65dc227592dda75e888b294b8a25f6cf2 Signed-off-by: Drew Davenport <ddavenport@google.com>
This commit is contained in:
parent
b08814ab3c
commit
7efc0f1c1d
1 changed files with 4 additions and 0 deletions
|
|
@ -205,6 +205,10 @@ HwcDisplay::ConfigError HwcDisplay::SetConfig(hwc2_config_t config) {
|
|||
ALOGE("Could not find active mode for %u", config);
|
||||
return ConfigError::kBadConfig;
|
||||
}
|
||||
if (IsInHeadlessMode()) {
|
||||
configs_.active_config_id = config;
|
||||
return ConfigError::kNone;
|
||||
}
|
||||
|
||||
const HwcDisplayConfig *current_config = GetCurrentConfig();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue