From da901bfc4f15723f0a7567ecd09742fd166df2f0 Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Fri, 28 Jun 2019 14:58:27 +0800 Subject: 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 --- services/surfaceflinger/SurfaceFlinger.h | 1 + 1 file changed, 1 insertion(+) (limited to 'services/surfaceflinger/SurfaceFlinger.h') diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index 6d4b2d755c..556a4b9be5 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -1115,6 +1115,7 @@ private: ui::Dataspace mDefaultCompositionDataspace; ui::Dataspace mWideColorGamutCompositionDataspace; + ui::Dataspace mColorSpaceAgnosticDataspace; SurfaceFlingerBE mBE; std::unique_ptr mCompositionEngine; -- cgit v1.2.3-59-g8ed1b