mirror of
https://github.com/openharmony/linux_frame_aware_sched.git
synced 2026-07-01 22:24:08 -04:00
@@ -235,7 +235,7 @@ void FrameUiIntf::ReceiveVSync() const
|
||||
return;
|
||||
}
|
||||
|
||||
void FrameUiIntf::MonitorGpuStart() const
|
||||
void FrameUiIntf::MonitorGpuStart(uint32_t fenceId) const
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -245,6 +245,11 @@ void FrameUiIntf::MonitorGpuEnd() const
|
||||
return;
|
||||
}
|
||||
|
||||
void FrameUiIntf::SendFenceId(uint32_t fenceId) const
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void FrameUiIntf::ReportSchedEvent(FrameSchedEvent event, const std::unordered_map<std::string, std::string>& payload)
|
||||
{
|
||||
return;
|
||||
@@ -390,9 +395,9 @@ extern "C" void ReceiveVSync()
|
||||
FrameUiIntf::GetInstance().ReceiveVSync();
|
||||
}
|
||||
|
||||
extern "C" void MonitorGpuStart()
|
||||
extern "C" void MonitorGpuStart(uint32_t fenceId)
|
||||
{
|
||||
FrameUiIntf::GetInstance().MonitorGpuStart();
|
||||
FrameUiIntf::GetInstance().MonitorGpuStart(fenceId);
|
||||
}
|
||||
|
||||
extern "C" void MonitorGpuEnd()
|
||||
@@ -400,6 +405,11 @@ extern "C" void MonitorGpuEnd()
|
||||
FrameUiIntf::GetInstance().MonitorGpuEnd();
|
||||
}
|
||||
|
||||
extern "C" void SendFenceId(uint32_t fenceId)
|
||||
{
|
||||
FrameUiIntf::GetInstance().SendFenceId(fenceId);
|
||||
}
|
||||
|
||||
extern "C" void ReportSchedEvent(FrameSchedEvent event, const std::unordered_map<std::string, std::string>& payload)
|
||||
{
|
||||
FrameUiIntf::GetInstance().ReportSchedEvent(event, payload);
|
||||
|
||||
@@ -60,8 +60,9 @@ public:
|
||||
void EnableSelfRender() const;
|
||||
void DisableSelfRender() const;
|
||||
void ReceiveVSync() const;
|
||||
void MonitorGpuStart() const;
|
||||
void MonitorGpuStart(uint32_t fenceId) const;
|
||||
void MonitorGpuEnd() const;
|
||||
void SendFenceId(uint32_t fenceId) const;
|
||||
private:
|
||||
bool inited = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user