mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-24 07:30:38 +00:00
!11884 vsync controller fuzzer fix
Merge pull request !11884 from 李辉/fuzzfix0530
This commit is contained in:
commit
a4d96eff93
@ -24,6 +24,7 @@ namespace OHOS {
|
||||
const uint8_t* data_ = nullptr;
|
||||
size_t size_ = 0;
|
||||
size_t pos;
|
||||
constexpr const int32_t WAIT_SYSTEM_ABILITY_REPORT_DATA_SECONDS = 5;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -67,6 +68,7 @@ namespace OHOS {
|
||||
vsyncController->SetEnable(enable, enable);
|
||||
vsyncController->SetPhaseOffset(offset);
|
||||
vsyncController->SetEnable(false, enable);
|
||||
sleep(WAIT_SYSTEM_ABILITY_REPORT_DATA_SECONDS);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user