Skip to content

Commit b9bcf0a

Browse files
author
ramindani
committed
Flag to increase jank threshold to 4 milliseconds
Test: No test BUG: 342265411 Flag: com.android.graphics.surfaceflinger.flags.increase_missed_frame_jank_threshold Change-Id: Iff26902c9c0ca16b3ef82961c0279b88e101364e
1 parent 24572ee commit b9bcf0a

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ void FlagManager::dump(std::string& result) const {
116116
DUMP_ACONFIG_FLAG(adpf_native_session_manager);
117117
DUMP_ACONFIG_FLAG(adpf_use_fmq_channel);
118118
DUMP_ACONFIG_FLAG(graphite_renderengine_preview_rollout);
119+
DUMP_ACONFIG_FLAG(increase_missed_frame_jank_threshold);
119120
DUMP_ACONFIG_FLAG(refresh_rate_overlay_on_external_display);
120121

121122
/// Trunk stable readonly flags ///
@@ -276,6 +277,7 @@ FLAG_MANAGER_ACONFIG_FLAG(refresh_rate_overlay_on_external_display, "")
276277
FLAG_MANAGER_ACONFIG_FLAG(adpf_gpu_sf, "")
277278
FLAG_MANAGER_ACONFIG_FLAG(adpf_native_session_manager, "");
278279
FLAG_MANAGER_ACONFIG_FLAG(graphite_renderengine_preview_rollout, "");
280+
FLAG_MANAGER_ACONFIG_FLAG(increase_missed_frame_jank_threshold, "");
279281

280282
/// Trunk stable server (R/W) flags from outside SurfaceFlinger ///
281283
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel, "", android::os)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class FlagManager {
5353
bool adpf_use_fmq_channel() const;
5454
bool adpf_use_fmq_channel_fixed() const;
5555
bool graphite_renderengine_preview_rollout() const;
56+
bool increase_missed_frame_jank_threshold() const;
5657
bool refresh_rate_overlay_on_external_display() const;
5758

5859
/// Trunk stable readonly flags ///

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ flag {
189189
bug: "293371537"
190190
} # graphite_renderengine_preview_rollout
191191

192+
flag {
193+
name: "increase_missed_frame_jank_threshold"
194+
namespace: "core_graphics"
195+
description: "Increase the jank threshold to 4 milliseconds"
196+
bug: "342265411"
197+
} # increase_missed_frame_jank_threshold
198+
192199
flag {
193200
name: "latch_unsignaled_with_auto_refresh_changed"
194201
namespace: "core_graphics"

0 commit comments

Comments
 (0)