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

Commit 70465c42 authored by ramindani's avatar ramindani
Browse files

[SF] Add flag vrr_config

This supports SurfaceFlinger running at divisor rates of
VRR vsyncRate

Test: m
BUG: 284845445
Change-Id: Ia1fc332df137eab16003828991258cf7003bb392
parent 2694a042
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -498,6 +498,7 @@ SurfaceFlinger::SurfaceFlinger(Factory& factory) : SurfaceFlinger(factory, SkipI
    mMiscFlagValue = flags::misc1();
    mConnectedDisplayFlagValue = flags::connected_display();
    mMisc2FlagEarlyBootValue = flags::late_boot_misc2();
    mVrrConfigFlagValue = flags::vrr_config();
}

LatchUnsignaledConfig SurfaceFlinger::getLatchUnsignaledConfig() {
@@ -6385,6 +6386,7 @@ void SurfaceFlinger::dumpAllLocked(const DumpArgs& args, const std::string& comp
    StringAppendF(&result, "Misc2FlagValue: %s (%s after boot)\n",
                  mMisc2FlagLateBootValue ? "true" : "false",
                  mMisc2FlagEarlyBootValue == mMisc2FlagLateBootValue ? "stable" : "modified");
    StringAppendF(&result, "VrrConfigFlagValue: %s\n", mVrrConfigFlagValue ? "true" : "false");

    getRenderEngine().dump(result);

+1 −0
Original line number Diff line number Diff line
@@ -1457,6 +1457,7 @@ private:
    bool mConnectedDisplayFlagValue;
    bool mMisc2FlagEarlyBootValue;
    bool mMisc2FlagLateBootValue;
    bool mVrrConfigFlagValue;
};

class SurfaceComposerAIDL : public gui::BnSurfaceComposer {
+8 −0
Original line number Diff line number Diff line
@@ -22,3 +22,11 @@ flag{
  description: "This flag controls minor miscellaneous SurfaceFlinger changes. Cannot be read before boot finished!"
  bug: "297389311"
}

flag {
  name: "vrr_config"
  namespace: "core_graphics"
  description: "Controls SurfaceFlinger support for VRR Configurations"
  bug: "284845445"
  is_fixed_read_only: true
}