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

Skip to content
Commit 6e4cd761 authored by Andy Yu's avatar Andy Yu
Browse files

Add Game Default Frame Rate calls

Update Game mode intervention frame rate override
and add game default frame rate override JNI calls
to SurfaceFlinger. Game default frame rate depends on
two sysprops:

To determine if it's enabled:
1) persist.graphics.game_default_frame_rate.enabled
To determine the default frame rate value:
2) ro.surface_flinger.game_default_frame_rate_override

This change adds setGameDefaultFrameRateOverride to
call into SurfaceFlinger. Meanwhile it also changes the
original override call to setGameModeFrameRateOverride
to differenitate between those two calls.

Bug: 286084594
Test: atest GameManagerServiceTests
Change-Id: I68f93e79fda5457303b49d0bd8f0edbb14e01b3f
parent fce39f14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment