blob: 991768322ca6b6ab1876438f70261e7660a1e989 [file] [log] [blame]
Sundong Ahnd5e08f62018-12-12 20:27:28 +09001
2#ifndef SURFACEFLINGERPROPERTIES_H_
3#define SURFACEFLINGERPROPERTIES_H_
4
5#include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h>
Sundong Ahncb20cca2019-02-22 11:57:38 +09006#include <android/hardware/graphics/common/1.2/types.h>
Sundong Ahnd5e08f62018-12-12 20:27:28 +09007#include <sysprop/SurfaceFlingerProperties.sysprop.h>
Sundong Ahncb20cca2019-02-22 11:57:38 +09008#include <ui/ConfigStoreTypes.h>
Sundong Ahnd5e08f62018-12-12 20:27:28 +09009
10#include <cstdint>
11#include <optional>
12#include <vector>
13
14namespace android {
15namespace sysprop {
16
17int64_t vsync_event_phase_offset_ns(int64_t defaultValue);
18
19int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue);
20
21bool use_context_priority(bool defaultValue);
22
23int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue);
24
25bool has_wide_color_display(bool defaultValue);
26
27bool running_without_sync_framework(bool defaultValue);
28
29bool has_HDR_display(bool defaultValue);
30
31int64_t present_time_offset_from_vsync_ns(int64_t defaultValue);
32
33bool force_hwc_copy_for_virtual_displays(bool defaultValue);
34
35int64_t max_virtual_display_dimension(int64_t defaultValue);
36
37bool use_vr_flinger(bool defaultValue);
38
39bool start_graphics_allocator_service(bool defaultValue);
40
41SurfaceFlingerProperties::primary_display_orientation_values primary_display_orientation(
42 SurfaceFlingerProperties::primary_display_orientation_values defaultValue);
43
44bool use_color_management(bool defaultValue);
45
46int64_t default_composition_dataspace(
47 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
48
49int32_t default_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080050 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahnd5e08f62018-12-12 20:27:28 +090051
52int64_t wcg_composition_dataspace(
53 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
54
55int32_t wcg_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080056 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahn85131bd2019-02-18 15:51:53 +090057
Sundong Ahncb20cca2019-02-22 11:57:38 +090058android::ui::DisplayPrimaries getDisplayNativePrimaries();
Sundong Ahnd5e08f62018-12-12 20:27:28 +090059} // namespace sysprop
60} // namespace android
61#endif // SURFACEFLINGERPROPERTIES_H_