Merge "Add GPU_LOAD_UP GPU_LOAD_DOWN session hints" into main

This commit is contained in:
Xiang Wang
2023-12-12 20:46:44 +00:00
committed by Android (Google) Code Review
2 changed files with 15 additions and 0 deletions

View File

@@ -39,4 +39,6 @@ enum SessionHint {
CPU_LOAD_RESET = 2,
CPU_LOAD_RESUME = 3,
POWER_EFFICIENCY = 4,
GPU_LOAD_UP = 5,
GPU_LOAD_DOWN = 6,
}

View File

@@ -52,4 +52,17 @@ enum SessionHint {
* power hint session is noncritical despite its CPU intensity.
*/
POWER_EFFICIENCY = 4,
/**
* This hint indicates an increase in GPU workload intensity. It means that
* this hint session needs extra GPU resources to meet the target duration.
* This hint must be sent before reporting the actual duration to the session.
*/
GPU_LOAD_UP = 5,
/**
* This hint indicates a decrease in GPU workload intensity. It means that
* this hint session can reduce GPU resources and still meet the target duration.
*/
GPU_LOAD_DOWN = 6,
}