mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 07:02:25 +00:00
fix codex
Signed-off-by: mingzhu_pearl <limingzhu10@huawei.com> Change-Id: I7d36d2793e68cc12732c781c1dca86b6a6241575
This commit is contained in:
parent
07bf00a5c3
commit
0b7159d8f8
@ -37,7 +37,7 @@ namespace {
|
||||
sptr<VSyncReceiver> g_receiver = nullptr;
|
||||
}
|
||||
|
||||
void HelloComposer::Run(std::vector<std::string> &runArgs)
|
||||
void HelloComposer::Run(const std::vector<std::string> &runArgs)
|
||||
{
|
||||
auto generator = CreateVSyncGenerator();
|
||||
sptr<VSyncController> vsyncController = new VSyncController(generator, 0);
|
||||
@ -82,7 +82,7 @@ void HelloComposer::Run(std::vector<std::string> &runArgs)
|
||||
|
||||
void HelloComposer::ParseArgs(const std::vector<std::string> &runArgs)
|
||||
{
|
||||
for (std::string &arg : runArgs) {
|
||||
for (const std::string &arg : runArgs) {
|
||||
if (arg == "--dump") {
|
||||
dump_ = true;
|
||||
} else if (arg == "--testClient") {
|
||||
|
@ -44,7 +44,7 @@ OH_NativeBuffer_Config config {
|
||||
.usage = BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA
|
||||
};
|
||||
|
||||
void CompareOH_NativeBufferConfig(OH_NativeBuffer_Config &config, const OH_NativeBuffer_Config &checkConfig)
|
||||
void CompareOH_NativeBufferConfig(const OH_NativeBuffer_Config &config, const OH_NativeBuffer_Config &checkConfig)
|
||||
{
|
||||
if (config.width != checkConfig.width) {
|
||||
LOGE("OH_NativeBufferConfig width different");
|
||||
|
@ -186,7 +186,7 @@ ns_sec_t SyncFence::SyncFileReadTimestamp()
|
||||
return FENCE_PENDING_TIMESTAMP;
|
||||
}
|
||||
size_t signalFenceCount = 0;
|
||||
for (auto &info : ptInfos) {
|
||||
for (const auto &info : ptInfos) {
|
||||
if (info.status == SIGNALED) {
|
||||
signalFenceCount++;
|
||||
}
|
||||
@ -194,7 +194,7 @@ ns_sec_t SyncFence::SyncFileReadTimestamp()
|
||||
if (signalFenceCount == ptInfos.size()) {
|
||||
// fence signaled
|
||||
uint64_t timestamp = 0;
|
||||
for (auto &ptInfo : ptInfos) {
|
||||
for (const auto &ptInfo : ptInfos) {
|
||||
if (ptInfo.timestampNs > timestamp) {
|
||||
timestamp = ptInfo.timestampNs;
|
||||
}
|
||||
@ -265,7 +265,7 @@ FenceStatus SyncFence::GetStatus()
|
||||
return ERROR;
|
||||
}
|
||||
size_t signalFenceCount = 0;
|
||||
for (auto &info : ptInfos) {
|
||||
for (const auto &info : ptInfos) {
|
||||
if (info.status == SIGNALED) {
|
||||
signalFenceCount++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user