Rename small dirty detection flag
To align the same feature name declared in display and correct the
infra error for previous flag that used wrong enable flag.
Bug: 283055450
Test: presubmit
Change-Id: I5f495d3fb2614ecd22978d820abe19c88e2cb90b
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index b13c0e8..e6d6866 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4031,7 +4031,7 @@
if (sysprop::use_content_detection_for_refresh_rate(false)) {
features |= Feature::kContentDetection;
- if (flags::vrr_small_dirty_detection()) {
+ if (flags::enable_small_area_detection()) {
features |= Feature::kSmallDirtyContentDetection;
}
}
diff --git a/services/surfaceflinger/surfaceflinger_flags.aconfig b/services/surfaceflinger/surfaceflinger_flags.aconfig
index 5a277bd..19d194f 100644
--- a/services/surfaceflinger/surfaceflinger_flags.aconfig
+++ b/services/surfaceflinger/surfaceflinger_flags.aconfig
@@ -32,14 +32,6 @@
}
flag {
- name: "vrr_small_dirty_detection"
- namespace: "core_graphics"
- description: "Controls small dirty detection for VRR"
- bug: "283055450"
- is_fixed_read_only: true
-}
-
-flag {
name: "dont_skip_on_early"
namespace: "core_graphics"
description: "This flag is guarding the behaviour where SurfaceFlinger is trying to opportunistically present a frame when the configuration change from late to early"
@@ -53,3 +45,11 @@
bug: "259132483"
is_fixed_read_only: true
}
+
+flag {
+ name: "enable_small_area_detection"
+ namespace: "core_graphics"
+ description: "Feature flag for SmallAreaDetection"
+ bug: "283055450"
+ is_fixed_read_only: true
+}
\ No newline at end of file