Ady Abraham | bcc90ee | 2024-02-28 15:43:51 -0800 | [diff] [blame] | 1 | # IMPORTANT - please keep alphabetize to reduce merge conflicts |
| 2 | |
| 3 | package: "com.android.graphics.surfaceflinger.flags" |
| 4 | container: "system" |
| 5 | |
| 6 | flag { |
Matt Buckley | 48eb435 | 2024-10-18 11:48:46 -0700 | [diff] [blame] | 7 | name: "adpf_fmq_sf" |
| 8 | namespace: "game" |
| 9 | description: "Guards use of the ADPF FMQ system specifically for SurfaceFlinger" |
| 10 | bug: "315894228" |
| 11 | is_fixed_read_only: true |
| 12 | } # adpf_fmq_sf |
| 13 | |
| 14 | flag { |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 15 | name: "adpf_gpu_sf" |
| 16 | namespace: "game" |
| 17 | description: "Guards use of the sending ADPF GPU duration hint and load hints from SurfaceFlinger to Power HAL" |
| 18 | bug: "284324521" |
Xiang Wang | 05cb764 | 2024-03-12 17:27:05 -0700 | [diff] [blame] | 19 | } # adpf_gpu_sf |
| 20 | |
| 21 | flag { |
Matt Buckley | 068fa0c | 2024-11-19 21:30:26 +0000 | [diff] [blame] | 22 | name: "adpf_native_session_manager" |
| 23 | namespace: "game" |
| 24 | description: "Controls ADPF SessionManager being enabled in SF" |
| 25 | bug: "367803904" |
| 26 | } # adpf_sessionmanager |
| 27 | |
| 28 | flag { |
Rachel Lee | 032e7f4 | 2024-10-04 14:14:58 -0700 | [diff] [blame] | 29 | name: "arr_setframerate_api" |
| 30 | namespace: "core_graphics" |
Rachel Lee | 1ed210e | 2024-10-22 19:15:52 -0700 | [diff] [blame] | 31 | description: "New SDK Surface#setFrameRate API and Surface.FrameRateParams for Android 16" |
Rachel Lee | 032e7f4 | 2024-10-04 14:14:58 -0700 | [diff] [blame] | 32 | bug: "356987016" |
| 33 | is_fixed_read_only: true |
Mårten Kongstad | 966cf1b | 2024-11-28 07:58:20 +0000 | [diff] [blame^] | 34 | is_exported: true |
Rachel Lee | 032e7f4 | 2024-10-04 14:14:58 -0700 | [diff] [blame] | 35 | } # arr_setframerate_api |
| 36 | |
| 37 | flag { |
Rachel Lee | 1ed210e | 2024-10-22 19:15:52 -0700 | [diff] [blame] | 38 | name: "arr_surfacecontrol_setframerate_api" |
| 39 | namespace: "core_graphics" |
| 40 | description: "New SDK SurfaceControl.Transaction#setFrameRate API for Android 16" |
| 41 | bug: "356987016" |
| 42 | is_fixed_read_only: true |
Mårten Kongstad | 966cf1b | 2024-11-28 07:58:20 +0000 | [diff] [blame^] | 43 | is_exported: true |
Rachel Lee | 1ed210e | 2024-10-22 19:15:52 -0700 | [diff] [blame] | 44 | } # arr_surfacecontrol_setframerate_api |
| 45 | |
| 46 | flag { |
Alec Mouri | 8face53 | 2024-11-09 22:15:32 +0000 | [diff] [blame] | 47 | name: "begone_bright_hlg" |
| 48 | namespace: "core_graphics" |
| 49 | description: "Caps HLG brightness relative to SDR" |
| 50 | bug: "362510107" |
| 51 | is_fixed_read_only: true |
| 52 | } # begone_bright_hlg |
| 53 | |
| 54 | flag { |
Melody Hsu | 793f836 | 2024-01-08 20:00:35 +0000 | [diff] [blame] | 55 | name: "ce_fence_promise" |
| 56 | namespace: "window_surfaces" |
| 57 | description: "Moves logic for buffer release fences into LayerFE" |
| 58 | bug: "294936197" |
| 59 | is_fixed_read_only: true |
| 60 | metadata { |
| 61 | purpose: PURPOSE_BUGFIX |
| 62 | } |
Melody Hsu | 7a458f7 | 2024-03-25 23:53:13 +0000 | [diff] [blame] | 63 | } # ce_fence_promise |
Melody Hsu | 793f836 | 2024-01-08 20:00:35 +0000 | [diff] [blame] | 64 | |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 65 | flag { |
| 66 | name: "commit_not_composited" |
| 67 | namespace: "core_graphics" |
| 68 | description: "mark frames as non janky if the transaction resulted in no composition" |
| 69 | bug: "340633280" |
| 70 | is_fixed_read_only: true |
| 71 | metadata { |
| 72 | purpose: PURPOSE_BUGFIX |
| 73 | } |
| 74 | } # commit_not_composited |
Ady Abraham | 14beed7 | 2024-05-15 17:16:45 -0700 | [diff] [blame] | 75 | |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 76 | flag { |
Sasha McIntosh | 066288a | 2024-10-28 17:21:39 -0400 | [diff] [blame] | 77 | name: "connected_display_hdr" |
| 78 | namespace: "core_graphics" |
| 79 | description: "enable connected display hdr capability" |
| 80 | bug: "374182788" |
| 81 | is_fixed_read_only: true |
| 82 | } # connected_display_hdr |
| 83 | |
| 84 | flag { |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 85 | name: "correct_dpi_with_display_size" |
| 86 | namespace: "core_graphics" |
| 87 | description: "indicate whether missing or likely incorrect dpi should be corrected using the display size." |
| 88 | bug: "328425848" |
| 89 | is_fixed_read_only: true |
| 90 | metadata { |
| 91 | purpose: PURPOSE_BUGFIX |
| 92 | } |
| 93 | } # correct_dpi_with_display_size |
| 94 | |
| 95 | flag { |
Ben Widawsky | 12b5112 | 2024-10-14 11:07:47 -0700 | [diff] [blame] | 96 | name: "deprecate_frame_tracker" |
| 97 | namespace: "core_graphics" |
| 98 | description: "Deprecate using FrameTracker to accumulate and provide FrameStats" |
| 99 | bug: "241394120" |
| 100 | is_fixed_read_only: true |
| 101 | metadata { |
| 102 | purpose: PURPOSE_BUGFIX |
| 103 | } |
| 104 | } # deprecate_frame_tracker |
| 105 | |
| 106 | flag { |
Ady Abraham | b334758 | 2024-04-03 01:01:51 +0000 | [diff] [blame] | 107 | name: "deprecate_vsync_sf" |
| 108 | namespace: "core_graphics" |
| 109 | description: "Depracate eVsyncSourceSurfaceFlinger and use vsync_app everywhere" |
| 110 | bug: "162235855" |
| 111 | is_fixed_read_only: true |
| 112 | metadata { |
| 113 | purpose: PURPOSE_BUGFIX |
| 114 | } |
| 115 | } # deprecate_vsync_sf |
| 116 | |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 117 | flag { |
Vishnu Nair | 491827d | 2024-04-29 23:43:26 +0000 | [diff] [blame] | 118 | name: "detached_mirror" |
| 119 | namespace: "window_surfaces" |
| 120 | description: "Ignore local transform when mirroring a partial hierarchy" |
| 121 | bug: "337845753" |
| 122 | is_fixed_read_only: true |
| 123 | metadata { |
| 124 | purpose: PURPOSE_BUGFIX |
| 125 | } |
Vishnu Nair | 9e0017e | 2024-05-22 19:02:44 +0000 | [diff] [blame] | 126 | } # detached_mirror |
Vishnu Nair | 491827d | 2024-04-29 23:43:26 +0000 | [diff] [blame] | 127 | |
Melody Hsu | 793f836 | 2024-01-08 20:00:35 +0000 | [diff] [blame] | 128 | flag { |
Manasi Navare | 6ab69ae | 2024-10-21 22:53:41 +0000 | [diff] [blame] | 129 | name: "display_config_error_hal" |
| 130 | namespace: "core_graphics" |
| 131 | description: "Report HAL display configuration errors like modeset failure or link training failure" |
| 132 | bug: "374184110" |
| 133 | is_fixed_read_only: true |
| 134 | } # display_config_error_hal |
| 135 | |
| 136 | flag { |
Ady Abraham | 43a68c3 | 2024-09-04 19:21:20 -0700 | [diff] [blame] | 137 | name: "filter_frames_before_trace_starts" |
| 138 | namespace: "core_graphics" |
| 139 | description: "Do not trace FrameTimeline events for frames started before the trace started" |
| 140 | bug: "364194637" |
| 141 | is_fixed_read_only: true |
| 142 | metadata { |
| 143 | purpose: PURPOSE_BUGFIX |
| 144 | } |
| 145 | } # filter_frames_before_trace_starts |
| 146 | |
| 147 | flag { |
Leon Scroggins III | a3ba7fa | 2024-05-22 16:34:52 -0400 | [diff] [blame] | 148 | name: "flush_buffer_slots_to_uncache" |
| 149 | namespace: "core_graphics" |
| 150 | description: "Flush DisplayCommands for disabled displays in order to uncache requested buffers." |
| 151 | bug: "330806421" |
| 152 | is_fixed_read_only: true |
| 153 | metadata { |
| 154 | purpose: PURPOSE_BUGFIX |
| 155 | } |
| 156 | } # flush_buffer_slots_to_uncache |
| 157 | |
| 158 | flag { |
Nolan Scobie | 4a46664 | 2024-05-23 16:22:22 -0400 | [diff] [blame] | 159 | name: "force_compile_graphite_renderengine" |
| 160 | namespace: "core_graphics" |
| 161 | description: "Compile Skia's Graphite Vulkan backend in RenderEngine, but do NOT enable it, unless graphite_renderengine is also set. It can also be enabled with the debug.renderengine.graphite system property for testing. In contrast, the graphite_renderengine flag both compiles AND enables Graphite in RenderEngine." |
| 162 | bug: "293371537" |
| 163 | is_fixed_read_only: true |
| 164 | } # force_compile_graphite_renderengine |
| 165 | |
| 166 | flag { |
Rachel Lee | 52f0abe | 2024-03-14 18:34:04 -0700 | [diff] [blame] | 167 | name: "frame_rate_category_mrr" |
| 168 | namespace: "core_graphics" |
| 169 | description: "Enable to use frame rate category and newer frame rate votes such as GTE in SurfaceFlinger scheduler, to guard dVRR changes from MRR devices" |
| 170 | bug: "330224639" |
| 171 | is_fixed_read_only: true |
| 172 | metadata { |
| 173 | purpose: PURPOSE_BUGFIX |
| 174 | } |
| 175 | } # frame_rate_category_mrr |
| 176 | |
Ady Abraham | bb1ad76 | 2024-03-27 18:31:28 -0700 | [diff] [blame] | 177 | flag { |
Noelle Scobie | c6acad1 | 2024-11-20 21:53:20 -0500 | [diff] [blame] | 178 | name: "graphite_renderengine_preview_rollout" |
| 179 | namespace: "core_graphics" |
| 180 | description: "R/W flag to enable Skia's Graphite Vulkan backend in RenderEngine, IF it is already compiled with force_compile_graphite_renderengine, AND the debug.renderengine.graphite_preview_optin sysprop is set to true." |
| 181 | bug: "293371537" |
| 182 | } # graphite_renderengine_preview_rollout |
| 183 | |
| 184 | flag { |
Ady Abraham | bb1ad76 | 2024-03-27 18:31:28 -0700 | [diff] [blame] | 185 | name: "latch_unsignaled_with_auto_refresh_changed" |
| 186 | namespace: "core_graphics" |
| 187 | description: "Ignore eAutoRefreshChanged with latch unsignaled" |
| 188 | bug: "331513837" |
| 189 | is_fixed_read_only: true |
| 190 | metadata { |
| 191 | purpose: PURPOSE_BUGFIX |
| 192 | } |
| 193 | } # latch_unsignaled_with_auto_refresh_changed |
| 194 | |
Alec Mouri | 1818c18 | 2024-05-13 18:25:11 +0000 | [diff] [blame] | 195 | flag { |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 196 | name: "local_tonemap_screenshots" |
| 197 | namespace: "core_graphics" |
| 198 | description: "Enables local tonemapping when capturing screenshots" |
| 199 | bug: "329464641" |
| 200 | is_fixed_read_only: true |
Alec Mouri | 1818c18 | 2024-05-13 18:25:11 +0000 | [diff] [blame] | 201 | } # local_tonemap_screenshots |
| 202 | |
Melody Hsu | 8c42cf1 | 2024-06-05 00:07:03 +0000 | [diff] [blame] | 203 | flag { |
Ady Abraham | a8217b5 | 2024-10-31 15:51:45 -0700 | [diff] [blame] | 204 | name: "no_vsyncs_on_screen_off" |
| 205 | namespace: "core_graphics" |
| 206 | description: "Stop vsync / Choreographer callbacks to apps when the screen is off" |
| 207 | bug: "331636736" |
| 208 | is_fixed_read_only: true |
| 209 | } # no_vsyncs_on_screen_off |
| 210 | |
| 211 | flag { |
Melody Hsu | 8c42cf1 | 2024-06-05 00:07:03 +0000 | [diff] [blame] | 212 | name: "single_hop_screenshot" |
| 213 | namespace: "window_surfaces" |
| 214 | description: "Only access SF main thread once during a screenshot" |
| 215 | bug: "285553970" |
| 216 | is_fixed_read_only: true |
| 217 | metadata { |
| 218 | purpose: PURPOSE_BUGFIX |
| 219 | } |
| 220 | } # single_hop_screenshot |
| 221 | |
Alec Mouri | 2b96d35 | 2024-07-09 19:19:36 +0000 | [diff] [blame] | 222 | flag { |
Wenhui Yang | b09293f | 2024-11-08 23:42:19 +0000 | [diff] [blame] | 223 | name: "skip_invisible_windows_in_input" |
| 224 | namespace: "window_surfaces" |
| 225 | description: "Only send visible windows to input list" |
| 226 | bug: "305254099" |
| 227 | is_fixed_read_only: true |
| 228 | metadata { |
| 229 | purpose: PURPOSE_BUGFIX |
| 230 | } |
| 231 | } # skip_invisible_windows_in_input |
| 232 | |
| 233 | flag { |
Gil Dekel | 4c575a1 | 2024-11-14 15:11:16 -0500 | [diff] [blame] | 234 | name: "stable_edid_ids" |
| 235 | namespace: "core_graphics" |
| 236 | description: "Guard use of the new stable EDID-based display IDs system." |
| 237 | bug: "352320847" |
| 238 | is_fixed_read_only: true |
| 239 | } # stable_edid_ids |
| 240 | |
| 241 | flag { |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 242 | name: "true_hdr_screenshots" |
| 243 | namespace: "core_graphics" |
| 244 | description: "Enables screenshotting display content in HDR, sans tone mapping" |
| 245 | bug: "329470026" |
| 246 | is_fixed_read_only: true |
Alec Mouri | 2b96d35 | 2024-07-09 19:19:36 +0000 | [diff] [blame] | 247 | } # true_hdr_screenshots |
| 248 | |
Vishnu Nair | 9e0017e | 2024-05-22 19:02:44 +0000 | [diff] [blame] | 249 | flag { |
| 250 | name: "override_trusted_overlay" |
| 251 | namespace: "window_surfaces" |
| 252 | description: "Allow child to disable trusted overlay set by a parent layer" |
| 253 | bug: "339701674" |
| 254 | is_fixed_read_only: true |
| 255 | metadata { |
| 256 | purpose: PURPOSE_BUGFIX |
| 257 | } |
| 258 | } # override_trusted_overlay |
| 259 | |
Vishnu Nair | df59f47 | 2024-05-17 16:51:33 +0000 | [diff] [blame] | 260 | flag { |
Lucas Berthou | 8d0a0c4 | 2024-08-27 14:32:31 +0000 | [diff] [blame] | 261 | name: "view_set_requested_frame_rate_mrr" |
| 262 | namespace: "core_graphics" |
| 263 | description: "Enable to use frame rate category NoPreference with fixed frame rate vote on MRR devices" |
| 264 | bug: "352206100" |
| 265 | is_fixed_read_only: true |
Rachel Lee | 0dd0518 | 2024-08-13 16:31:45 -0700 | [diff] [blame] | 266 | } # view_set_requested_frame_rate_mrr |
| 267 | |
| 268 | flag { |
Vishnu Nair | df59f47 | 2024-05-17 16:51:33 +0000 | [diff] [blame] | 269 | name: "vrr_bugfix_24q4" |
| 270 | namespace: "core_graphics" |
| 271 | description: "bug fixes for VRR" |
| 272 | bug: "331513837" |
| 273 | is_fixed_read_only: true |
| 274 | metadata { |
| 275 | purpose: PURPOSE_BUGFIX |
| 276 | } |
| 277 | } # vrr_bugfix_24q4 |
| 278 | |
ramindani | a3be80c | 2024-06-20 14:08:37 -0700 | [diff] [blame] | 279 | flag { |
| 280 | name: "vrr_bugfix_dropped_frame" |
| 281 | namespace: "core_graphics" |
| 282 | description: "bug fix for VRR dropped frame" |
| 283 | bug: "343603085" |
| 284 | is_fixed_read_only: true |
| 285 | metadata { |
| 286 | purpose: PURPOSE_BUGFIX |
| 287 | } |
| 288 | } # vrr_bugfix_dropped_frame |
| 289 | |
Ady Abraham | bcc90ee | 2024-02-28 15:43:51 -0800 | [diff] [blame] | 290 | # IMPORTANT - please keep alphabetize to reduce merge conflicts |