Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1589c6f authored by Xiang Wang's avatar Xiang Wang
Browse files

Add GPU_LOAD_UP GPU_LOAD_DOWN session hints

Bug: 284324521
Test: n/a

Change-Id: Iedf0a037939096cae1719a4fbbbc1eece53d2564
parent 9e0b057b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
}
+13 −0
Original line number Diff line number Diff line
@@ -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,
}