sdm:hwc2: Initialize color mode count for virtual display.
CRs-Fixed: 2194718 Change-Id: I33df8b1b81d98d24dcbc7d013b9ff9cee59c3e94
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
45609e11e3
commit
b7663cc85c
@@ -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
|
* Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||||
* provided that the following conditions are met:
|
* provided that the following conditions are met:
|
||||||
@@ -161,6 +161,14 @@ DisplayError DisplayVirtual::Prepare(LayerStack *layer_stack) {
|
|||||||
return DisplayBase::Prepare(layer_stack);
|
return DisplayBase::Prepare(layer_stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DisplayError DisplayVirtual::GetColorModeCount(uint32_t *mode_count) {
|
||||||
|
lock_guard<recursive_mutex> obj(recursive_mutex_);
|
||||||
|
|
||||||
|
// Color Manager isn't supported for virtual displays.
|
||||||
|
*mode_count = 1;
|
||||||
|
|
||||||
|
return kErrorNone;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace sdm
|
} // namespace sdm
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
* Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||||
* provided that the following conditions are met:
|
* provided that the following conditions are met:
|
||||||
@@ -63,6 +63,7 @@ class DisplayVirtual : public DisplayBase {
|
|||||||
// on virtual display is functional.
|
// on virtual display is functional.
|
||||||
return kErrorNone;
|
return kErrorNone;
|
||||||
}
|
}
|
||||||
|
virtual DisplayError GetColorModeCount(uint32_t *mode_count);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace sdm
|
} // namespace sdm
|
||||||
|
|||||||
Reference in New Issue
Block a user