Skip to content

Commit 441a7ed

Browse files
Add stop layer feature flag
Bug: 403312802 Flag: com.android.graphics.surfaceflinger.flags.stop_layer Test: n/a - adds a feature flag Change-Id: Ia58ff50ea780806e7a39ef5e4dfa59225b6b0c5c
1 parent 2dfd42e commit 441a7ed

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ void FlagManager::dump(std::string& result) const {
175175
DUMP_ACONFIG_FLAG(restore_blur_step);
176176
DUMP_ACONFIG_FLAG(skip_invisible_windows_in_input);
177177
DUMP_ACONFIG_FLAG(stable_edid_ids);
178+
DUMP_ACONFIG_FLAG(stop_layer);
178179
DUMP_ACONFIG_FLAG(synced_resolution_switch);
179180
DUMP_ACONFIG_FLAG(trace_frame_rate_override);
180181
DUMP_ACONFIG_FLAG(true_hdr_screenshots);
@@ -297,6 +298,7 @@ FLAG_MANAGER_ACONFIG_FLAG(display_config_error_hal, "");
297298
FLAG_MANAGER_ACONFIG_FLAG(connected_display_hdr, "debug.sf.connected_display_hdr");
298299
FLAG_MANAGER_ACONFIG_FLAG(deprecate_frame_tracker, "");
299300
FLAG_MANAGER_ACONFIG_FLAG(skip_invisible_windows_in_input, "");
301+
FLAG_MANAGER_ACONFIG_FLAG(stop_layer, "");
300302
FLAG_MANAGER_ACONFIG_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg");
301303
FLAG_MANAGER_ACONFIG_FLAG(window_blur_kawase2, "");
302304
FLAG_MANAGER_ACONFIG_FLAG(reject_dupe_layerstacks, "");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class FlagManager {
110110
bool restore_blur_step() const;
111111
bool skip_invisible_windows_in_input() const;
112112
bool stable_edid_ids() const;
113+
bool stop_layer() const;
113114
bool synced_resolution_switch() const;
114115
bool trace_frame_rate_override() const;
115116
bool true_hdr_screenshots() const;

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ flag {
291291
is_fixed_read_only: true
292292
} # stable_edid_ids
293293

294+
flag {
295+
name: "stop_layer"
296+
namespace: "window_surfaces"
297+
description: "Enables stop layers when building layer snapshots"
298+
bug: "403312802"
299+
is_fixed_read_only: true
300+
} # stop_layer
301+
294302
flag {
295303
name: "synced_resolution_switch"
296304
namespace: "core_graphics"

0 commit comments

Comments
 (0)