SurfaceFlingerProperties.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright 2019 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef SURFACEFLINGERPROPERTIES_H_
  17. #define SURFACEFLINGERPROPERTIES_H_
  18. #include <SurfaceFlingerProperties.sysprop.h>
  19. #include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h>
  20. #include <android/hardware/graphics/common/1.2/types.h>
  21. #include <ui/ConfigStoreTypes.h>
  22. #include <cstdint>
  23. #include <optional>
  24. #include <vector>
  25. namespace android {
  26. namespace sysprop {
  27. int64_t vsync_event_phase_offset_ns(int64_t defaultValue);
  28. int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue);
  29. bool use_context_priority(bool defaultValue);
  30. int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue);
  31. bool has_wide_color_display(bool defaultValue);
  32. bool running_without_sync_framework(bool defaultValue);
  33. bool has_HDR_display(bool defaultValue);
  34. int64_t present_time_offset_from_vsync_ns(int64_t defaultValue);
  35. bool force_hwc_copy_for_virtual_displays(bool defaultValue);
  36. int64_t max_virtual_display_dimension(int64_t defaultValue);
  37. bool use_vr_flinger(bool defaultValue);
  38. bool start_graphics_allocator_service(bool defaultValue);
  39. SurfaceFlingerProperties::primary_display_orientation_values primary_display_orientation(
  40. SurfaceFlingerProperties::primary_display_orientation_values defaultValue);
  41. bool use_color_management(bool defaultValue);
  42. int64_t default_composition_dataspace(
  43. android::hardware::graphics::common::V1_2::Dataspace defaultValue);
  44. int32_t default_composition_pixel_format(
  45. android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
  46. int64_t wcg_composition_dataspace(
  47. android::hardware::graphics::common::V1_2::Dataspace defaultValue);
  48. int32_t wcg_composition_pixel_format(
  49. android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
  50. int64_t color_space_agnostic_dataspace(
  51. android::hardware::graphics::common::V1_2::Dataspace defaultValue);
  52. int32_t set_idle_timer_ms(int32_t defaultValue);
  53. int32_t set_touch_timer_ms(int32_t defaultValue);
  54. int32_t set_display_power_timer_ms(int32_t defaultValue);
  55. bool use_smart_90_for_video(bool defaultValue);
  56. bool enable_protected_contents(bool defaultValue);
  57. bool support_kernel_idle_timer(bool defaultValue);
  58. android::ui::DisplayPrimaries getDisplayNativePrimaries();
  59. } // namespace sysprop
  60. } // namespace android
  61. #endif // SURFACEFLINGERPROPERTIES_H_