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

Commit 2493f01a authored by Shan Huang's avatar Shan Huang
Browse files

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
parent 7051e5bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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, "")
+1 −0
Original line number Diff line number Diff line
@@ -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
+7 −0
Original line number Diff line number Diff line
@@ -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