summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlingerProperties.h
diff options
context:
space:
mode:
author Yichi Chen <yichichen@google.com> 2019-06-28 14:58:27 +0800
committer Yichi Chen <yichichen@google.com> 2019-07-04 08:41:18 +0800
commitda901bfc4f15723f0a7567ecd09742fd166df2f0 (patch)
tree398f9450270c04716ad841464f4b2dd6b8772b93 /services/surfaceflinger/SurfaceFlingerProperties.h
parent57e206513f87b5af6b0a32ca6e9f245cd5b78040 (diff)
SF: enable device-specific dataspace for color space agnostic surfaces
To reduce the DPU loading in color conversion, we enable device-specific dataspace for color space agnostic surfaces. Since the type of surfaces usually provide gray-level surfaces to users, it can be acceptable to ignore the color conversion on them. Bug: 134783740 Bug: 135140940 Test: Check ScreenDecorOverlays in expected dataspace Test: Play HDR video on B1 and C2 and check dataspace Change-Id: I7b11e11d2015eb5c8dfdc372e2c7ffcb40a2ac1d
Diffstat (limited to 'services/surfaceflinger/SurfaceFlingerProperties.h')
-rw-r--r--services/surfaceflinger/SurfaceFlingerProperties.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlingerProperties.h b/services/surfaceflinger/SurfaceFlingerProperties.h
index 1964ccd582..b5418d6538 100644
--- a/services/surfaceflinger/SurfaceFlingerProperties.h
+++ b/services/surfaceflinger/SurfaceFlingerProperties.h
@@ -70,6 +70,9 @@ int64_t wcg_composition_dataspace(
int32_t wcg_composition_pixel_format(
android::hardware::graphics::common::V1_2::PixelFormat defaultValue);
+int64_t color_space_agnostic_dataspace(
+ android::hardware::graphics::common::V1_2::Dataspace defaultValue);
+
int32_t set_idle_timer_ms(int32_t defaultValue);
int32_t set_touch_timer_ms(int32_t defaultValue);