diff options
author | 2024-11-26 16:43:57 -0800 | |
---|---|---|
committer | 2024-12-06 01:01:39 +0000 | |
commit | 2493f01a6aa426773354c8bb6a3d24e3fb6ef145 (patch) | |
tree | 7bcd224cb4782098aa7268095fdd7bcbc952b14e | |
parent | 7051e5bcbd110590c3f7b825eeb8c071f6fbaa21 (diff) |
Add a trunk stable flag for switching blur algorithm to Kawase2.
Bug: 353826438
Test: m -j
Flag: com.android.graphics.surfaceflinger.flags.window_blur_kawase2
Change-Id: Ifd25ea69409af9ca2a6bb9d541c714f0516abf15
-rw-r--r-- | services/surfaceflinger/common/FlagManager.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/common/include/common/FlagManager.h | 1 | ||||
-rw-r--r-- | services/surfaceflinger/surfaceflinger_flags_new.aconfig | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/common/FlagManager.cpp b/services/surfaceflinger/common/FlagManager.cpp index 858f7598ca..5e78426c77 100644 --- a/services/surfaceflinger/common/FlagManager.cpp +++ b/services/surfaceflinger/common/FlagManager.cpp @@ -165,6 +165,7 @@ void FlagManager::dump(std::string& result) const { DUMP_ACONFIG_FLAG(deprecate_frame_tracker); DUMP_ACONFIG_FLAG(skip_invisible_windows_in_input); DUMP_ACONFIG_FLAG(begone_bright_hlg); + DUMP_ACONFIG_FLAG(window_blur_kawase2); #undef DUMP_ACONFIG_FLAG #undef DUMP_LEGACY_SERVER_FLAG @@ -264,6 +265,7 @@ FLAG_MANAGER_ACONFIG_FLAG(connected_display_hdr, "debug.sf.connected_display_hdr FLAG_MANAGER_ACONFIG_FLAG(deprecate_frame_tracker, ""); FLAG_MANAGER_ACONFIG_FLAG(skip_invisible_windows_in_input, ""); FLAG_MANAGER_ACONFIG_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg"); +FLAG_MANAGER_ACONFIG_FLAG(window_blur_kawase2, ""); /// Trunk stable server (R/W) flags /// FLAG_MANAGER_ACONFIG_FLAG(refresh_rate_overlay_on_external_display, "") diff --git a/services/surfaceflinger/common/include/common/FlagManager.h b/services/surfaceflinger/common/include/common/FlagManager.h index 05af721681..d8887f538f 100644 --- a/services/surfaceflinger/common/include/common/FlagManager.h +++ b/services/surfaceflinger/common/include/common/FlagManager.h @@ -103,6 +103,7 @@ public: bool skip_invisible_windows_in_input() const; bool begone_bright_hlg() const; bool luts_api() const; + bool window_blur_kawase2() const; protected: // overridden for unit tests diff --git a/services/surfaceflinger/surfaceflinger_flags_new.aconfig b/services/surfaceflinger/surfaceflinger_flags_new.aconfig index fc0fabd3e7..bdd826d084 100644 --- a/services/surfaceflinger/surfaceflinger_flags_new.aconfig +++ b/services/surfaceflinger/surfaceflinger_flags_new.aconfig @@ -295,4 +295,11 @@ flag { } } # vrr_bugfix_dropped_frame +flag { + name: "window_blur_kawase2" + namespace: "core_graphics" + description: "Flag for using Kawase2 algorithm for window blur" + bug: "353826438" +} # window_blur_kawase2 + # IMPORTANT - please keep alphabetize to reduce merge conflicts |