mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
!16611 增加ErrorLog的维测:SendMsg
Merge pull request !16611 from lastking/master
This commit is contained in:
commit
74aa094529
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user