blob: c86880ebf513808778fdc9c750aa5bc7d145a209 [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>
6#include <android/hardware/configstore/1.2/ISurfaceFlingerConfigs.h>
7#include <sysprop/SurfaceFlingerProperties.sysprop.h>
8
9#include <cstdint>
10#include <optional>
11#include <vector>
12
13namespace android {
14namespace sysprop {
15
16int64_t vsync_event_phase_offset_ns(int64_t defaultValue);
17
18int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue);
19
20bool use_context_priority(bool defaultValue);
21
22int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue);
23
24bool has_wide_color_display(bool defaultValue);
25
26bool running_without_sync_framework(bool defaultValue);
27
28bool has_HDR_display(bool defaultValue);
29
30int64_t present_time_offset_from_vsync_ns(int64_t defaultValue);
31
32bool force_hwc_copy_for_virtual_displays(bool defaultValue);
33
34int64_t max_virtual_display_dimension(int64_t defaultValue);
35
36bool use_vr_flinger(bool defaultValue);
37
38bool start_graphics_allocator_service(bool defaultValue);
39
40SurfaceFlingerProperties::primary_display_orientation_values primary_display_orientation(
41 SurfaceFlingerProperties::primary_display_orientation_values defaultValue);
42
43bool use_color_management(bool defaultValue);
44
45int64_t default_composition_dataspace(
46 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
47
48int32_t default_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080049 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahnd5e08f62018-12-12 20:27:28 +090050
51int64_t wcg_composition_dataspace(
52 android::hardware::graphics::common::V1_2::Dataspace defaultValue);
53
54int32_t wcg_composition_pixel_format(
Kevin DuBois73d0f482019-01-25 11:18:03 -080055 android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
Sundong Ahn85131bd2019-02-18 15:51:53 +090056
57android::hardware::configstore::V1_2::DisplayPrimaries getDisplayNativePrimaries();
Sundong Ahnd5e08f62018-12-12 20:27:28 +090058} // namespace sysprop
59} // namespace android
60#endif // SURFACEFLINGERPROPERTIES_H_