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

Commit 6f022e0e authored by BeYkeRYkt's avatar BeYkeRYkt Committed by ssizon
Browse files

power: use SCROLL_PREFILING for short interactions

* In the CAF branch, SCROLL_PREFILING is used during interface redrawing, when
  continuous scrolling occurs or possible flinging is expected. Use this hint
  during a short interaction.
* Use SCROLL_VERTICAL if we have scrolling duration information according to CAF.
* For some SoC or devices, the hint variables SCROLL_VERTICAL and SCROLL_PREFILING
  may be different.

Change-Id: I0781f566165c36eb658f755b2e4a10751c730026
parent 26d15e96
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -331,6 +331,8 @@ static int process_interaction_hint(void *data)

    if (duration > kMinInteractiveDuration) {
        perf_hint_enable_with_type(VENDOR_HINT_SCROLL_BOOST, duration, SCROLL_VERTICAL);
    }else {
        perf_hint_enable_with_type(VENDOR_HINT_SCROLL_BOOST, duration, SCROLL_PREFILING);
    }

    return HINT_HANDLED;