!16611 增加ErrorLog的维测:SendMsg

Merge pull request !16611 from lastking/master
This commit is contained in:
openharmony_ci 2024-11-04 02:14:35 +00:00 committed by Gitee
commit 74aa094529
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,8 @@ void RSRenderServiceClient::CommitTransaction(std::unique_ptr<RSTransactionData>
auto renderService = RSRenderServiceConnectHub::GetRenderService();
if (renderService != nullptr) {
renderService->CommitTransaction(transactionData);
} else {
RS_LOGE("RSRenderServiceClient::CommitTransaction failed, renderService is nullptr");
}
}

View File

@ -126,6 +126,7 @@ void RSTransactionProxy::FlushImplicitTransaction(uint64_t timestamp, const std:
{
std::unique_lock<std::mutex> cmdLock(mutex_);
if (!implicitRemoteTransactionDataStack_.empty() && needSync_) {
RS_LOGE("FlushImplicitTransaction failed");
return;
}
timestamp_ = std::max(timestamp, timestamp_);
@ -145,6 +146,9 @@ void RSTransactionProxy::FlushImplicitTransaction(uint64_t timestamp, const std:
renderServiceClient_->CommitTransaction(implicitRemoteTransactionData_);
transactionDataIndex_ = implicitRemoteTransactionData_->GetIndex();
implicitRemoteTransactionData_ = std::make_unique<RSTransactionData>();
} else {
RS_LOGE("FlushImplicitTransaction failed, [%{public}d, %{public}d]",
renderServiceClient_ != nullptr, implicitRemoteTransactionData_->IsEmpty());
}
}

View File

@ -347,6 +347,8 @@ void RSUIDirector::SendMessages()
if (transactionProxy != nullptr) {
transactionProxy->FlushImplicitTransaction(timeStamp_, abilityName_);
index_ = transactionProxy->GetTransactionDataIndex();
} else {
RS_LOGE("RSUIDirector::SendMessages failed, transactionProxy is nullptr");
}
ROSEN_TRACE_END(HITRACE_TAG_GRAPHIC_AGP);
}