Skip to content

Commit 76c438d

Browse files
authored
Clarify reportActualDuration usage for Android APIs
Updated comments to clarify usage for different Android API levels.
1 parent d6490bf commit 76c438d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/common/AdpfWrapper.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ namespace oboe {
7474
/**
7575
* Report the measured duration of a callback.
7676
* This is normally called by onEndCallback().
77-
* On older Android devices (below Android 16), you may want to call this directly in order
78-
* to give an advance hint of a jump in workload.
79-
* On newer APIs, use notifyWorkloadIncrease() instead.
77+
* On older Android devices (below Android API level 36), you may want to call this
78+
* directly in order to give an advance hint of a jump in workload.
79+
* On Android API level 36 and above, notifyWorkloadIncrease() is the preferred
80+
* API to call instead to signal an upcoming increase in workload.
8081
* @param actualDurationNanos
8182
*/
8283
void reportActualDuration(int64_t actualDurationNanos);

0 commit comments

Comments
 (0)