diff options
author | Jun Wang <quic_junwan@quicinc.com> | 2023-12-12 19:46:02 +0800 |
---|---|---|
committer | Jun Wang <quic_junwan@quicinc.com> | 2023-12-12 20:21:37 +0800 |
commit | 6e9d854d73a3820780e1bcffe9b33711bd840ec9 (patch) | |
tree | e79620def4227a5abda9d0a65f228eb234b749c8 | |
parent | d4b7e71a0f4ac726740a2dac6c6ad8e440f1bf08 (diff) |
sf: Only invoke dolphin hooks for sync binder
To avoid calling dolphin hooks in async binder can reduce unnecessary
check and thread creation. As games use sync binder to queue buffer,
dolphin functions will not be hurt.
Change-Id: I605c0c289aa98a64d629fe7bce7f3e26c38b3a0e
CRs-Fixed: 3673538
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 9ef07f0e5a..db0e331231 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -4824,7 +4824,9 @@ status_t SurfaceFlinger::setTransactionState( layerName.c_str(), transactionId); /* QTI_BEGIN */ - mQtiSFExtnIntf->qtiDolphinTrackBufferIncrement(layerName.c_str()); + if (!(flags & eOneWay)) { + mQtiSFExtnIntf->qtiDolphinTrackBufferIncrement(layerName.c_str()); + } mQtiSFExtnIntf->qtiUpdateSmomoLayerInfo(layer, desiredPresentTime, isAutoTimestamp, resolvedState.externalTexture, |