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

Commit 2be5ae89 authored by Andy Yu's avatar Andy Yu Committed by Matt Buckley
Browse files

Add GRAPHICS_PIPELINE session mode

This patch adds a new performance hint session mode,
GRAPHICS_PIPELINE, indicating that the threads associated with
this hint session is of graphics pipeline, namely on critical path.

This session mode allows HAL to know that these threads are of higher
priority and can schedule CPU resources accordingly.

Bug: 362801903
Bug: 367803904
Test: atest HintManagerServiceTest
      atest PerformanceHintNativeTest
Flag: EXEMPT_NDK
Change-Id: I164b2e29de79bbe27c14358924cb421457831325
parent 1365aa32
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,4 +35,5 @@ package android.hardware.power;
@Backing(type="int") @VintfStability
enum SessionMode {
  POWER_EFFICIENCY,
  GRAPHICS_PIPELINE,
}
+7 −0
Original line number Diff line number Diff line
@@ -25,4 +25,11 @@ enum SessionMode {
     * and can be safely scheduled to prefer power efficiency.
     */
    POWER_EFFICIENCY,

    /**
     * This mode indicates that the threads associated with this hint session
     * are part of the graphics pipeline, implying that they are on a critical path
     * which will be called of higher priority in terms of CPU resources and scheduling.
     */
    GRAPHICS_PIPELINE,
}