Skip to content

Commit 7d24e7e

Browse files
Brian3031Android (Google) Code Review
authored andcommitted
Merge "Add flag for applying picture profiles in SurfaceFlinger" into main
2 parents 6bc812d + e2ca80b commit 7d24e7e

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

libs/gui/Android.bp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ cc_library_shared {
341341
"libgui_aidl_headers",
342342
],
343343

344+
static_libs: [
345+
"libsurfaceflingerflags",
346+
],
347+
344348
afdo: true,
345349

346350
lto: {

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void FlagManager::dump(std::string& result) const {
117117

118118
/// Trunk stable readonly flags ///
119119
DUMP_READ_ONLY_FLAG(adpf_fmq_sf);
120+
DUMP_READ_ONLY_FLAG(apply_picture_profiles_sf);
120121
DUMP_READ_ONLY_FLAG(connected_display);
121122
DUMP_READ_ONLY_FLAG(enable_small_area_detection);
122123
DUMP_READ_ONLY_FLAG(frame_rate_category_mrr);
@@ -224,6 +225,7 @@ FLAG_MANAGER_LEGACY_SERVER_FLAG(use_skia_tracing, PROPERTY_SKIA_ATRACE_ENABLED,
224225

225226
/// Trunk stable readonly flags ///
226227
FLAG_MANAGER_READ_ONLY_FLAG(adpf_fmq_sf, "")
228+
FLAG_MANAGER_READ_ONLY_FLAG(apply_picture_profiles_sf, "")
227229
FLAG_MANAGER_READ_ONLY_FLAG(connected_display, "")
228230
FLAG_MANAGER_READ_ONLY_FLAG(enable_small_area_detection, "")
229231
FLAG_MANAGER_READ_ONLY_FLAG(frame_rate_category_mrr, "debug.sf.frame_rate_category_mrr")

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class FlagManager {
5555

5656
/// Trunk stable readonly flags ///
5757
bool adpf_fmq_sf() const;
58+
bool apply_picture_profiles_sf() const;
5859
bool connected_display() const;
5960
bool frame_rate_category_mrr() const;
6061
bool enable_small_area_detection() const;

services/surfaceflinger/surfaceflinger_flags_new.aconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ flag {
1818
bug: "284324521"
1919
} # adpf_gpu_sf
2020

21+
flag {
22+
name: "apply_picture_profiles_sf"
23+
namespace: "tv_os_media"
24+
description: "SurfaceFlinger applies picture profile requests and sends them to Composer HAL"
25+
bug: "337330263"
26+
is_fixed_read_only: true
27+
} # apply_picture_profiles_sf
28+
2129
flag {
2230
name: "arr_setframerate_api"
2331
namespace: "core_graphics"

0 commit comments

Comments
 (0)