rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 17 | #include <common/FlagManager.h> |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 18 | |
| 19 | #include <SurfaceFlingerProperties.sysprop.h> |
| 20 | #include <android-base/parsebool.h> |
| 21 | #include <android-base/parseint.h> |
Leon Scroggins III | a37ca99 | 2022-02-02 18:08:20 -0500 | [diff] [blame] | 22 | #include <android-base/properties.h> |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 23 | #include <android-base/stringprintf.h> |
| 24 | #include <log/log.h> |
Leon Scroggins III | a37ca99 | 2022-02-02 18:08:20 -0500 | [diff] [blame] | 25 | #include <renderengine/RenderEngine.h> |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 26 | #include <server_configurable_flags/get_flags.h> |
| 27 | #include <cinttypes> |
| 28 | |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 29 | #include <android_os.h> |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 30 | #include <android_hardware_flags.h> |
Ady Abraham | 1d0cae9 | 2024-06-14 13:41:12 -0700 | [diff] [blame] | 31 | #include <com_android_graphics_libgui_flags.h> |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 32 | #include <com_android_graphics_surfaceflinger_flags.h> |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 33 | #include <com_android_server_display_feature_flags.h> |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 34 | |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 35 | namespace android { |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 36 | using namespace com::android::graphics::surfaceflinger; |
| 37 | |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 38 | static constexpr const char* kExperimentNamespace = "surface_flinger_native_boot"; |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 39 | |
Ady Abraham | 53b0c49 | 2023-10-23 11:47:14 -0700 | [diff] [blame] | 40 | std::unique_ptr<FlagManager> FlagManager::mInstance; |
| 41 | std::once_flag FlagManager::mOnce; |
| 42 | |
| 43 | FlagManager::FlagManager(ConstructorTag) {} |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 44 | FlagManager::~FlagManager() = default; |
| 45 | |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 46 | namespace { |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 47 | std::optional<bool> parseBool(const char* str) { |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 48 | base::ParseBoolResult parseResult = base::ParseBool(str); |
| 49 | switch (parseResult) { |
| 50 | case base::ParseBoolResult::kTrue: |
| 51 | return std::make_optional(true); |
| 52 | case base::ParseBoolResult::kFalse: |
| 53 | return std::make_optional(false); |
| 54 | case base::ParseBoolResult::kError: |
| 55 | return std::nullopt; |
| 56 | } |
| 57 | } |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 58 | |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 59 | bool getFlagValue(std::function<bool()> getter, std::optional<bool> overrideValue) { |
| 60 | if (overrideValue.has_value()) { |
| 61 | return *overrideValue; |
| 62 | } |
| 63 | |
| 64 | return getter(); |
| 65 | } |
| 66 | |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 67 | } // namespace |
| 68 | |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 69 | const FlagManager& FlagManager::getInstance() { |
| 70 | return getMutableInstance(); |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 71 | } |
| 72 | |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 73 | FlagManager& FlagManager::getMutableInstance() { |
| 74 | std::call_once(mOnce, [&] { |
| 75 | LOG_ALWAYS_FATAL_IF(mInstance, "Instance already created"); |
| 76 | mInstance = std::make_unique<FlagManager>(ConstructorTag{}); |
| 77 | }); |
| 78 | |
| 79 | return *mInstance; |
| 80 | } |
| 81 | |
| 82 | void FlagManager::markBootCompleted() { |
| 83 | mBootCompleted = true; |
| 84 | } |
| 85 | |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 86 | void FlagManager::setUnitTestMode() { |
| 87 | mUnitTestMode = true; |
| 88 | |
| 89 | // Also set boot completed as we don't really care about it in unit testing |
| 90 | mBootCompleted = true; |
| 91 | } |
| 92 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 93 | void FlagManager::dumpFlag(std::string& result, bool aconfig, const char* name, |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 94 | std::function<bool()> getter) const { |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 95 | if (aconfig || mBootCompleted) { |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 96 | base::StringAppendF(&result, "%s: %s\n", name, getter() ? "true" : "false"); |
| 97 | } else { |
| 98 | base::StringAppendF(&result, "%s: in progress (still booting)\n", name); |
| 99 | } |
| 100 | } |
| 101 | |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 102 | void FlagManager::dump(std::string& result) const { |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 103 | #define DUMP_FLAG_INTERNAL(name, aconfig) \ |
| 104 | dumpFlag(result, (aconfig), #name, std::bind(&FlagManager::name, this)) |
| 105 | #define DUMP_LEGACY_SERVER_FLAG(name) DUMP_FLAG_INTERNAL(name, false) |
| 106 | #define DUMP_ACONFIG_FLAG(name) DUMP_FLAG_INTERNAL(name, true) |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 107 | |
| 108 | base::StringAppendF(&result, "FlagManager values: \n"); |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 109 | |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 110 | /// Legacy server flags /// |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 111 | DUMP_LEGACY_SERVER_FLAG(use_adpf_cpu_hint); |
| 112 | DUMP_LEGACY_SERVER_FLAG(use_skia_tracing); |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 113 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 114 | /// Trunk stable server (R/W) flags /// |
| 115 | DUMP_ACONFIG_FLAG(refresh_rate_overlay_on_external_display); |
| 116 | DUMP_ACONFIG_FLAG(adpf_gpu_sf); |
| 117 | DUMP_ACONFIG_FLAG(adpf_native_session_manager); |
| 118 | DUMP_ACONFIG_FLAG(adpf_use_fmq_channel); |
Noelle Scobie | c6acad1 | 2024-11-20 21:53:20 -0500 | [diff] [blame] | 119 | DUMP_ACONFIG_FLAG(graphite_renderengine_preview_rollout); |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 120 | |
| 121 | /// Trunk stable readonly flags /// |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 122 | DUMP_ACONFIG_FLAG(adpf_fmq_sf); |
Rachel Lee | c6bc5f5 | 2024-11-25 21:40:14 -0800 | [diff] [blame] | 123 | DUMP_ACONFIG_FLAG(arr_setframerate_gte_enum); |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 124 | DUMP_ACONFIG_FLAG(connected_display); |
| 125 | DUMP_ACONFIG_FLAG(enable_small_area_detection); |
| 126 | DUMP_ACONFIG_FLAG(stable_edid_ids); |
| 127 | DUMP_ACONFIG_FLAG(frame_rate_category_mrr); |
| 128 | DUMP_ACONFIG_FLAG(misc1); |
| 129 | DUMP_ACONFIG_FLAG(vrr_config); |
| 130 | DUMP_ACONFIG_FLAG(hdcp_level_hal); |
| 131 | DUMP_ACONFIG_FLAG(multithreaded_present); |
| 132 | DUMP_ACONFIG_FLAG(add_sf_skipped_frames_to_trace); |
| 133 | DUMP_ACONFIG_FLAG(use_known_refresh_rate_for_fps_consistency); |
| 134 | DUMP_ACONFIG_FLAG(cache_when_source_crop_layer_only_moved); |
| 135 | DUMP_ACONFIG_FLAG(enable_fro_dependent_features); |
| 136 | DUMP_ACONFIG_FLAG(display_protected); |
| 137 | DUMP_ACONFIG_FLAG(fp16_client_target); |
| 138 | DUMP_ACONFIG_FLAG(game_default_frame_rate); |
| 139 | DUMP_ACONFIG_FLAG(enable_layer_command_batching); |
| 140 | DUMP_ACONFIG_FLAG(vulkan_renderengine); |
| 141 | DUMP_ACONFIG_FLAG(renderable_buffer_usage); |
| 142 | DUMP_ACONFIG_FLAG(vrr_bugfix_24q4); |
| 143 | DUMP_ACONFIG_FLAG(vrr_bugfix_dropped_frame); |
| 144 | DUMP_ACONFIG_FLAG(restore_blur_step); |
| 145 | DUMP_ACONFIG_FLAG(dont_skip_on_early_ro); |
| 146 | DUMP_ACONFIG_FLAG(no_vsyncs_on_screen_off); |
| 147 | DUMP_ACONFIG_FLAG(protected_if_client); |
| 148 | DUMP_ACONFIG_FLAG(idle_screen_refresh_rate_timeout); |
| 149 | DUMP_ACONFIG_FLAG(graphite_renderengine); |
| 150 | DUMP_ACONFIG_FLAG(filter_frames_before_trace_starts); |
| 151 | DUMP_ACONFIG_FLAG(latch_unsignaled_with_auto_refresh_changed); |
| 152 | DUMP_ACONFIG_FLAG(deprecate_vsync_sf); |
| 153 | DUMP_ACONFIG_FLAG(allow_n_vsyncs_in_targeter); |
| 154 | DUMP_ACONFIG_FLAG(detached_mirror); |
| 155 | DUMP_ACONFIG_FLAG(commit_not_composited); |
| 156 | DUMP_ACONFIG_FLAG(correct_dpi_with_display_size); |
| 157 | DUMP_ACONFIG_FLAG(local_tonemap_screenshots); |
| 158 | DUMP_ACONFIG_FLAG(override_trusted_overlay); |
| 159 | DUMP_ACONFIG_FLAG(flush_buffer_slots_to_uncache); |
| 160 | DUMP_ACONFIG_FLAG(force_compile_graphite_renderengine); |
| 161 | DUMP_ACONFIG_FLAG(trace_frame_rate_override); |
| 162 | DUMP_ACONFIG_FLAG(true_hdr_screenshots); |
| 163 | DUMP_ACONFIG_FLAG(display_config_error_hal); |
| 164 | DUMP_ACONFIG_FLAG(connected_display_hdr); |
| 165 | DUMP_ACONFIG_FLAG(deprecate_frame_tracker); |
| 166 | DUMP_ACONFIG_FLAG(skip_invisible_windows_in_input); |
| 167 | DUMP_ACONFIG_FLAG(begone_bright_hlg); |
Ady Abraham | bb1ad76 | 2024-03-27 18:31:28 -0700 | [diff] [blame] | 168 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 169 | #undef DUMP_ACONFIG_FLAG |
| 170 | #undef DUMP_LEGACY_SERVER_FLAG |
Ady Abraham | b6041f6 | 2023-11-03 12:14:26 -0700 | [diff] [blame] | 171 | #undef DUMP_FLAG_INTERVAL |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 172 | } |
| 173 | |
| 174 | std::optional<bool> FlagManager::getBoolProperty(const char* property) const { |
| 175 | return parseBool(base::GetProperty(property, "").c_str()); |
| 176 | } |
| 177 | |
| 178 | bool FlagManager::getServerConfigurableFlag(const char* experimentFlagName) const { |
| 179 | const auto value = server_configurable_flags::GetServerConfigurableFlag(kExperimentNamespace, |
| 180 | experimentFlagName, ""); |
| 181 | const auto res = parseBool(value.c_str()); |
| 182 | return res.has_value() && res.value(); |
| 183 | } |
| 184 | |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 185 | #define FLAG_MANAGER_LEGACY_SERVER_FLAG(name, syspropOverride, serverFlagName) \ |
Ady Abraham | c589dc4 | 2023-10-26 16:20:53 -0700 | [diff] [blame] | 186 | bool FlagManager::name() const { \ |
| 187 | LOG_ALWAYS_FATAL_IF(!mBootCompleted, \ |
| 188 | "Can't read %s before boot completed as it is server writable", \ |
| 189 | __func__); \ |
| 190 | const auto debugOverride = getBoolProperty(syspropOverride); \ |
| 191 | if (debugOverride.has_value()) return debugOverride.value(); \ |
| 192 | return getServerConfigurableFlag(serverFlagName); \ |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 193 | } |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 194 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 195 | #define FLAG_MANAGER_ACONFIG_INTERNAL(name, syspropOverride, owner) \ |
| 196 | bool FlagManager::name() const { \ |
| 197 | static const std::optional<bool> debugOverride = getBoolProperty(syspropOverride); \ |
| 198 | static const bool value = getFlagValue([] { return owner ::name(); }, debugOverride); \ |
| 199 | if (mUnitTestMode) { \ |
| 200 | /* \ |
| 201 | * When testing, we don't want to rely on the cached `value` or the debugOverride. \ |
| 202 | */ \ |
| 203 | return owner ::name(); \ |
| 204 | } \ |
| 205 | return value; \ |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 206 | } |
Matt Buckley | d23c796 | 2021-09-21 20:43:00 +0000 | [diff] [blame] | 207 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 208 | #define FLAG_MANAGER_ACONFIG_FLAG(name, syspropOverride) \ |
| 209 | FLAG_MANAGER_ACONFIG_INTERNAL(name, syspropOverride, flags) |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 210 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 211 | #define FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(name, syspropOverride, owner) \ |
| 212 | FLAG_MANAGER_ACONFIG_INTERNAL(name, syspropOverride, owner) |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 213 | |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 214 | /// Legacy server flags /// |
| 215 | FLAG_MANAGER_LEGACY_SERVER_FLAG(test_flag, "", "") |
| 216 | FLAG_MANAGER_LEGACY_SERVER_FLAG(use_adpf_cpu_hint, "debug.sf.enable_adpf_cpu_hint", |
| 217 | "AdpfFeature__adpf_cpu_hint") |
| 218 | FLAG_MANAGER_LEGACY_SERVER_FLAG(use_skia_tracing, PROPERTY_SKIA_ATRACE_ENABLED, |
| 219 | "SkiaTracingFeature__use_skia_tracing") |
| 220 | |
| 221 | /// Trunk stable readonly flags /// |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 222 | FLAG_MANAGER_ACONFIG_FLAG(adpf_fmq_sf, "") |
Rachel Lee | c6bc5f5 | 2024-11-25 21:40:14 -0800 | [diff] [blame] | 223 | FLAG_MANAGER_ACONFIG_FLAG(arr_setframerate_gte_enum, "debug.sf.arr_setframerate_gte_enum") |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 224 | FLAG_MANAGER_ACONFIG_FLAG(connected_display, "") |
| 225 | FLAG_MANAGER_ACONFIG_FLAG(enable_small_area_detection, "") |
| 226 | FLAG_MANAGER_ACONFIG_FLAG(stable_edid_ids, "debug.sf.stable_edid_ids") |
| 227 | FLAG_MANAGER_ACONFIG_FLAG(frame_rate_category_mrr, "debug.sf.frame_rate_category_mrr") |
| 228 | FLAG_MANAGER_ACONFIG_FLAG(misc1, "") |
| 229 | FLAG_MANAGER_ACONFIG_FLAG(vrr_config, "debug.sf.enable_vrr_config") |
| 230 | FLAG_MANAGER_ACONFIG_FLAG(hdcp_level_hal, "") |
| 231 | FLAG_MANAGER_ACONFIG_FLAG(multithreaded_present, "debug.sf.multithreaded_present") |
| 232 | FLAG_MANAGER_ACONFIG_FLAG(add_sf_skipped_frames_to_trace, "") |
| 233 | FLAG_MANAGER_ACONFIG_FLAG(use_known_refresh_rate_for_fps_consistency, "") |
| 234 | FLAG_MANAGER_ACONFIG_FLAG(cache_when_source_crop_layer_only_moved, |
| 235 | "debug.sf.cache_source_crop_only_moved") |
| 236 | FLAG_MANAGER_ACONFIG_FLAG(enable_fro_dependent_features, "") |
| 237 | FLAG_MANAGER_ACONFIG_FLAG(display_protected, "") |
| 238 | FLAG_MANAGER_ACONFIG_FLAG(fp16_client_target, "debug.sf.fp16_client_target") |
| 239 | FLAG_MANAGER_ACONFIG_FLAG(game_default_frame_rate, "") |
| 240 | FLAG_MANAGER_ACONFIG_FLAG(enable_layer_command_batching, "debug.sf.enable_layer_command_batching") |
| 241 | FLAG_MANAGER_ACONFIG_FLAG(vulkan_renderengine, "debug.renderengine.vulkan") |
| 242 | FLAG_MANAGER_ACONFIG_FLAG(renderable_buffer_usage, "") |
| 243 | FLAG_MANAGER_ACONFIG_FLAG(restore_blur_step, "debug.renderengine.restore_blur_step") |
| 244 | FLAG_MANAGER_ACONFIG_FLAG(dont_skip_on_early_ro, "") |
| 245 | FLAG_MANAGER_ACONFIG_FLAG(no_vsyncs_on_screen_off, "debug.sf.no_vsyncs_on_screen_off") |
| 246 | FLAG_MANAGER_ACONFIG_FLAG(protected_if_client, "") |
| 247 | FLAG_MANAGER_ACONFIG_FLAG(vrr_bugfix_24q4, ""); |
| 248 | FLAG_MANAGER_ACONFIG_FLAG(vrr_bugfix_dropped_frame, "") |
| 249 | FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine, "debug.renderengine.graphite") |
| 250 | FLAG_MANAGER_ACONFIG_FLAG(filter_frames_before_trace_starts, "") |
| 251 | FLAG_MANAGER_ACONFIG_FLAG(latch_unsignaled_with_auto_refresh_changed, ""); |
| 252 | FLAG_MANAGER_ACONFIG_FLAG(deprecate_vsync_sf, ""); |
| 253 | FLAG_MANAGER_ACONFIG_FLAG(allow_n_vsyncs_in_targeter, ""); |
| 254 | FLAG_MANAGER_ACONFIG_FLAG(detached_mirror, ""); |
| 255 | FLAG_MANAGER_ACONFIG_FLAG(commit_not_composited, ""); |
| 256 | FLAG_MANAGER_ACONFIG_FLAG(correct_dpi_with_display_size, ""); |
| 257 | FLAG_MANAGER_ACONFIG_FLAG(local_tonemap_screenshots, "debug.sf.local_tonemap_screenshots"); |
| 258 | FLAG_MANAGER_ACONFIG_FLAG(override_trusted_overlay, ""); |
| 259 | FLAG_MANAGER_ACONFIG_FLAG(flush_buffer_slots_to_uncache, ""); |
| 260 | FLAG_MANAGER_ACONFIG_FLAG(force_compile_graphite_renderengine, ""); |
| 261 | FLAG_MANAGER_ACONFIG_FLAG(true_hdr_screenshots, "debug.sf.true_hdr_screenshots"); |
| 262 | FLAG_MANAGER_ACONFIG_FLAG(display_config_error_hal, ""); |
Sasha McIntosh | f08ed64 | 2024-10-24 15:43:07 -0400 | [diff] [blame] | 263 | FLAG_MANAGER_ACONFIG_FLAG(connected_display_hdr, "debug.sf.connected_display_hdr"); |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 264 | FLAG_MANAGER_ACONFIG_FLAG(deprecate_frame_tracker, ""); |
| 265 | FLAG_MANAGER_ACONFIG_FLAG(skip_invisible_windows_in_input, ""); |
| 266 | FLAG_MANAGER_ACONFIG_FLAG(begone_bright_hlg, "debug.sf.begone_bright_hlg"); |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 267 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 268 | /// Trunk stable server (R/W) flags /// |
| 269 | FLAG_MANAGER_ACONFIG_FLAG(refresh_rate_overlay_on_external_display, "") |
| 270 | FLAG_MANAGER_ACONFIG_FLAG(adpf_gpu_sf, "") |
| 271 | FLAG_MANAGER_ACONFIG_FLAG(adpf_native_session_manager, ""); |
Noelle Scobie | c6acad1 | 2024-11-20 21:53:20 -0500 | [diff] [blame] | 272 | FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine_preview_rollout, ""); |
Ady Abraham | d6d8016 | 2023-10-23 12:57:41 -0700 | [diff] [blame] | 273 | |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 274 | /// Trunk stable server (R/W) flags from outside SurfaceFlinger /// |
| 275 | FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os) |
Matt Buckley | ffc31d1 | 2024-02-28 16:51:28 +0000 | [diff] [blame] | 276 | |
Ady Abraham | 354ccde | 2024-03-21 10:40:28 -0700 | [diff] [blame] | 277 | /// Trunk stable readonly flags from outside SurfaceFlinger /// |
Noelle Scobie | 887598b | 2024-11-20 21:16:49 -0500 | [diff] [blame] | 278 | FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(idle_screen_refresh_rate_timeout, "", |
| 279 | com::android::server::display::feature::flags) |
| 280 | FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel_fixed, "", android::os) |
| 281 | FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(trace_frame_rate_override, "", |
| 282 | com::android::graphics::libgui::flags); |
Sally Qi | 952acc1 | 2024-12-03 17:53:56 +0000 | [diff] [blame^] | 283 | FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(luts_api, "", |
| 284 | android::hardware::flags); |
rnlee | 81d3260 | 2021-07-27 13:24:07 -0700 | [diff] [blame] | 285 | } // namespace android |