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

Commit c99303bb authored by Arthur Hung's avatar Arthur Hung
Browse files

Add a flag for the VRR small dirty detection

Test: presubmit
Bug: 283055450
Change-Id: Iea2b2edc65e2b5d702f380c655c37327f0aa1308
parent 9e840766
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4015,7 +4015,7 @@ void SurfaceFlinger::initScheduler(const sp<const DisplayDevice>& display) {

    if (sysprop::use_content_detection_for_refresh_rate(false)) {
        features |= Feature::kContentDetection;
        if (base::GetBoolProperty("debug.sf.enable_small_dirty_detection"s, false)) {
        if (flags::vrr_small_dirty_detection()) {
            features |= Feature::kSmallDirtyContentDetection;
        }
    }
+8 −0
Original line number Diff line number Diff line
@@ -30,3 +30,11 @@ flag {
  bug: "284845445"
  is_fixed_read_only: true
}

flag {
  name: "vrr_small_dirty_detection"
  namespace: "core_graphics"
  description: "Controls small dirty detection for VRR"
  bug: "283055450"
  is_fixed_read_only: true
}