display_extn: Add support for sending RE TID to perf HAL
This change adds a perf hint type enum to identify the TID between SF and RE threads when sending them to perf HAL. This change also deprecates the SendCompositorPid and replaces it with SendCompositorTid with a return value. Change-Id: I7f3cb8a2e544e7cadad352a3a0ef82fe91cb2412 CRs-Fixed: 3021178
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
#define EARLY_WAKEUP_FEATURE 1
|
||||
#define DYNAMIC_EARLY_WAKEUP_CONFIG 1
|
||||
#define PASS_COMPOSITOR_PID 1
|
||||
#define PASS_COMPOSITOR_TID 1
|
||||
#define SMART_DISPLAY_CONFIG 1
|
||||
#define FPS_MITIGATION_ENABLED 1
|
||||
|
||||
@@ -72,6 +72,12 @@ struct FBTSlotInfo {
|
||||
bool predicted = false;
|
||||
};
|
||||
|
||||
enum PerfHintType {
|
||||
kNone = 0,
|
||||
kSurfaceFlinger,
|
||||
kRenderEngine,
|
||||
};
|
||||
|
||||
class DisplayExtnIntf {
|
||||
public:
|
||||
virtual int SetContentFps(uint32_t fps) = 0;
|
||||
@@ -86,7 +92,7 @@ class DisplayExtnIntf {
|
||||
const FBTLayerInfo fbt_info, const FBTSlotInfo &fbt_current,
|
||||
FBTSlotInfo &fbt_future) = 0;
|
||||
virtual int EndDraw(uint32_t display_id, const FBTSlotInfo &fbt_current) = 0;
|
||||
virtual void SendCompositorPid() = 0;
|
||||
virtual int SendCompositorTid(PerfHintType type, int tid) = 0;
|
||||
virtual bool IsSmartDisplayConfig(uint32_t display_id) = 0;
|
||||
virtual void SetFpsMitigationCallback(const FpsMitigationCallback callback,
|
||||
std::vector<float> fps_list) = 0;
|
||||
|
||||
Reference in New Issue
Block a user