mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-01-09 08:22:00 +00:00
modify DisplayManager.GetAllDisplays interface
Signed-off-by: xiaojianfeng <xiaojianfeng3@huawei.com> Change-Id: Iff165af080f82ad237cfec352d9a600e91d1be93
This commit is contained in:
parent
0b7b911407
commit
cc56fb4579
@ -27,7 +27,7 @@ int main(int argc, const char *argv[])
|
||||
WaitRenderServiceInit();
|
||||
|
||||
auto& dms = OHOS::Rosen::DisplayManager::GetInstance();
|
||||
std::vector<const sptr<OHOS::Rosen::Display>> displays = dms.GetAllDisplays();
|
||||
auto displays = dms.GetAllDisplays();
|
||||
while (displays.empty()) {
|
||||
LOG("displays is empty, retry to get displays");
|
||||
displays = dms.GetAllDisplays();
|
||||
|
Loading…
Reference in New Issue
Block a user