Skip to content

Commit 9bf557f

Browse files
patrickdwilliamsAndroid (Google) Code Review
authored andcommitted
Merge "Add stop layer feature flag" into main
2 parents 8e0f200 + 441a7ed commit 9bf557f

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
@@ -174,6 +174,7 @@ void FlagManager::dump(std::string& result) const {
174174
DUMP_ACONFIG_FLAG(restore_blur_step);
175175
DUMP_ACONFIG_FLAG(skip_invisible_windows_in_input);
176176
DUMP_ACONFIG_FLAG(stable_edid_ids);
177+
DUMP_ACONFIG_FLAG(stop_layer);
177178
DUMP_ACONFIG_FLAG(synced_resolution_switch);
178179
DUMP_ACONFIG_FLAG(trace_frame_rate_override);
179180
DUMP_ACONFIG_FLAG(true_hdr_screenshots);
@@ -292,6 +293,7 @@ FLAG_MANAGER_ACONFIG_FLAG(display_config_error_hal, "");
292293
FLAG_MANAGER_ACONFIG_FLAG(connected_display_hdr, "debug.sf.connected_display_hdr");
293294
FLAG_MANAGER_ACONFIG_FLAG(deprecate_frame_tracker, "");
294295
FLAG_MANAGER_ACONFIG_FLAG(skip_invisible_windows_in_input, "");
296+
FLAG_MANAGER_ACONFIG_FLAG(stop_layer, "");
295297
FLAG_MANAGER_ACONFIG_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg");
296298
FLAG_MANAGER_ACONFIG_FLAG(window_blur_kawase2, "");
297299
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
@@ -109,6 +109,7 @@ class FlagManager {
109109
bool restore_blur_step() const;
110110
bool skip_invisible_windows_in_input() const;
111111
bool stable_edid_ids() const;
112+
bool stop_layer() const;
112113
bool synced_resolution_switch() const;
113114
bool trace_frame_rate_override() const;
114115
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)