mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 01:00:50 +00:00
commit
2f4749527d
@ -246,7 +246,7 @@ int RSRenderService::Dump(int fd, const std::vector<std::u16string>& args)
|
||||
return OHOS::INVALID_OPERATION;
|
||||
}
|
||||
if (write(fd, dumpString.c_str(), dumpString.size()) < 0) {
|
||||
RS_LOGE("RSRenderService::DumpNodesNotOnTheTree write failed");
|
||||
RS_LOGE("RSRenderService::DumpNodesNotOnTheTree write failed, string size: %{public}zu", dumpString.size());
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
return OHOS::NO_ERROR;
|
||||
|
@ -2170,7 +2170,7 @@ void RSSurfaceRenderNode::CheckAndUpdateOpaqueRegion(const RectI& screeninfo, co
|
||||
opaqueRegionBaseInfo_.containerConfig_ == containerConfig_;
|
||||
if (!ret) {
|
||||
if (absRect.IsEmpty()) {
|
||||
RS_LOGW("%{public}s absRect is empty, dst rect: %{public}s, old dirty in surface: %{public}s",
|
||||
RS_LOGD("%{public}s absRect is empty, dst rect: %{public}s, old dirty in surface: %{public}s",
|
||||
GetName().c_str(), GetDstRect().ToString().c_str(), GetOldDirtyInSurface().ToString().c_str());
|
||||
RS_TRACE_NAME_FMT("%s absRect is empty, dst rect: %s, old dirty in surface: %s",
|
||||
GetName().c_str(), GetDstRect().ToString().c_str(), GetOldDirtyInSurface().ToString().c_str());
|
||||
|
@ -42,20 +42,17 @@ sptr<RSRenderServiceConnectHub> RSRenderServiceConnectHub::GetInstance()
|
||||
|
||||
void RSRenderServiceConnectHub::Init()
|
||||
{
|
||||
RS_LOGD("RSRenderServiceConnectHub::Init");
|
||||
instance_ = new RSRenderServiceConnectHub();
|
||||
::atexit(&RSRenderServiceConnectHub::Destroy);
|
||||
}
|
||||
|
||||
void RSRenderServiceConnectHub::Destroy()
|
||||
{
|
||||
RS_LOGI("RSRenderServiceConnectHub::Destroy");
|
||||
instance_ = nullptr;
|
||||
}
|
||||
|
||||
RSRenderServiceConnectHub::RSRenderServiceConnectHub()
|
||||
{
|
||||
RS_LOGD("RSRenderServiceConnectHub: ctor");
|
||||
}
|
||||
|
||||
RSRenderServiceConnectHub::~RSRenderServiceConnectHub() noexcept
|
||||
@ -63,7 +60,6 @@ RSRenderServiceConnectHub::~RSRenderServiceConnectHub() noexcept
|
||||
if (renderService_ && renderService_->AsObject() && deathRecipient_) {
|
||||
renderService_->AsObject()->RemoveDeathRecipient(deathRecipient_);
|
||||
}
|
||||
RS_LOGI("~RSRenderServiceConnectHub: dtor");
|
||||
}
|
||||
|
||||
sptr<RSIRenderServiceConnection> RSRenderServiceConnectHub::GetRenderService()
|
||||
@ -149,7 +145,6 @@ bool RSRenderServiceConnectHub::Connect()
|
||||
void RSRenderServiceConnectHub::ConnectDied()
|
||||
{
|
||||
mutex_.lock();
|
||||
RS_LOGI("RSRenderServiceConnectHub::ConnectDied lock pid: %{public}d", getpid());
|
||||
renderService_ = nullptr;
|
||||
if (conn_) {
|
||||
conn_->RunOnRemoteDiedCallback();
|
||||
@ -158,7 +153,6 @@ void RSRenderServiceConnectHub::ConnectDied()
|
||||
deathRecipient_ = nullptr;
|
||||
token_ = nullptr;
|
||||
mutex_.unlock();
|
||||
RS_LOGI("RSRenderServiceConnectHub::ConnectDied unlock pid: %{public}d", getpid());
|
||||
}
|
||||
|
||||
void RSRenderServiceConnectHub::RenderServiceDeathRecipient::OnRemoteDied(const wptr<IRemoteObject>& remote)
|
||||
|
Loading…
Reference in New Issue
Block a user