Skip to content

Commit cb47c6c

Browse files
Shan HuangAndroid (Google) Code Review
authored andcommitted
Merge "Add a trunk stable flag for switching blur algorithm to Kawase2." into main
2 parents ffdc6e0 + 2493f01 commit cb47c6c

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ void FlagManager::dump(std::string& result) const {
165165
DUMP_ACONFIG_FLAG(deprecate_frame_tracker);
166166
DUMP_ACONFIG_FLAG(skip_invisible_windows_in_input);
167167
DUMP_ACONFIG_FLAG(begone_bright_hlg);
168+
DUMP_ACONFIG_FLAG(window_blur_kawase2);
168169

169170
#undef DUMP_ACONFIG_FLAG
170171
#undef DUMP_LEGACY_SERVER_FLAG
@@ -264,6 +265,7 @@ FLAG_MANAGER_ACONFIG_FLAG(connected_display_hdr, "debug.sf.connected_display_hdr
264265
FLAG_MANAGER_ACONFIG_FLAG(deprecate_frame_tracker, "");
265266
FLAG_MANAGER_ACONFIG_FLAG(skip_invisible_windows_in_input, "");
266267
FLAG_MANAGER_ACONFIG_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg");
268+
FLAG_MANAGER_ACONFIG_FLAG(window_blur_kawase2, "");
267269

268270
/// Trunk stable server (R/W) flags ///
269271
FLAG_MANAGER_ACONFIG_FLAG(refresh_rate_overlay_on_external_display, "")

services/surfaceflinger/common/include/common/FlagManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class FlagManager {
103103
bool skip_invisible_windows_in_input() const;
104104
bool begone_bright_hlg() const;
105105
bool luts_api() const;
106+
bool window_blur_kawase2() const;
106107

107108
protected:
108109
// overridden for unit tests

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,11 @@ flag {
295295
}
296296
} # vrr_bugfix_dropped_frame
297297

298+
flag {
299+
name: "window_blur_kawase2"
300+
namespace: "core_graphics"
301+
description: "Flag for using Kawase2 algorithm for window blur"
302+
bug: "353826438"
303+
} # window_blur_kawase2
304+
298305
# IMPORTANT - please keep alphabetize to reduce merge conflicts

0 commit comments

Comments
 (0)