Skip to content

Commit f909829

Browse files
Sally QiAndroid (Google) Code Review
authored andcommitted
Merge "SurfaceFlinger: Import hardware flags from aconfig" into main
2 parents f09d630 + 952acc1 commit f909829

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

services/surfaceflinger/common/Android.bp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ cc_library_static {
3838
],
3939
static_libs: [
4040
"libsurfaceflingerflags",
41+
"aconfig_hardware_flags_c_lib",
4142
"android.os.flags-aconfig-cc",
4243
"android.server.display.flags-aconfig-cc",
4344
"libguiflags_no_apex",
@@ -51,6 +52,7 @@ cc_library_static {
5152
],
5253
static_libs: [
5354
"libsurfaceflingerflags_test",
55+
"aconfig_hardware_flags_c_lib",
5456
"android.os.flags-aconfig-cc-test",
5557
"android.server.display.flags-aconfig-cc",
5658
"libguiflags_no_apex",
@@ -67,6 +69,7 @@ cc_defaults {
6769
static_libs: [
6870
"libsurfaceflinger_common",
6971
"libsurfaceflingerflags",
72+
"aconfig_hardware_flags_c_lib",
7073
"android.os.flags-aconfig-cc",
7174
"android.server.display.flags-aconfig-cc",
7275
"libguiflags_no_apex",
@@ -83,6 +86,7 @@ cc_defaults {
8386
static_libs: [
8487
"libsurfaceflinger_common_test",
8588
"libsurfaceflingerflags_test",
89+
"aconfig_hardware_flags_c_lib",
8690
"android.os.flags-aconfig-cc-test",
8791
"android.server.display.flags-aconfig-cc",
8892
"libguiflags_no_apex",

services/surfaceflinger/common/FlagManager.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <cinttypes>
2828

2929
#include <android_os.h>
30+
#include <android_hardware_flags.h>
3031
#include <com_android_graphics_libgui_flags.h>
3132
#include <com_android_graphics_surfaceflinger_flags.h>
3233
#include <com_android_server_display_feature_flags.h>
@@ -279,5 +280,6 @@ FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(idle_screen_refresh_rate_timeout, "",
279280
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(adpf_use_fmq_channel_fixed, "", android::os)
280281
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(trace_frame_rate_override, "",
281282
com::android::graphics::libgui::flags);
282-
283+
FLAG_MANAGER_ACONFIG_FLAG_IMPORTED(luts_api, "",
284+
android::hardware::flags);
283285
} // namespace android

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class FlagManager {
102102
bool deprecate_frame_tracker() const;
103103
bool skip_invisible_windows_in_input() const;
104104
bool begone_bright_hlg() const;
105+
bool luts_api() const;
105106

106107
protected:
107108
// overridden for unit tests

0 commit comments

Comments
 (0)