From c502cb751508dd2008ee5e0601d4aae31cbaf6ca Mon Sep 17 00:00:00 2001 From: Peiyong Lin Date: Fri, 1 Mar 2019 15:00:23 -0800 Subject: [SurfaceFlinger] Add setColorSpaceAgnostic API. Some layers, for example ScreenDecorOverlay*, only carry black, white or gray with some transpanrency, these values are special as they are color space agnostic. We don't need to do color conversion on them, instead we want to intercept the color space before we send to hardware composer for validation. This patch adds an API to allow this to happen. BUG: 126616348 Test: Build, flash and boot. Verify by calling in Letterbox. Change-Id: I62c9bf4feb320b466584a90df707c2b04213339c --- services/surfaceflinger/ContainerLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/surfaceflinger/ContainerLayer.cpp') diff --git a/services/surfaceflinger/ContainerLayer.cpp b/services/surfaceflinger/ContainerLayer.cpp index 738f4b63c9..7927fa95b6 100644 --- a/services/surfaceflinger/ContainerLayer.cpp +++ b/services/surfaceflinger/ContainerLayer.cpp @@ -40,6 +40,6 @@ bool ContainerLayer::canReceiveInput() const { } void ContainerLayer::setPerFrameData(const sp&, const ui::Transform&, - const Rect&, int32_t) {} + const Rect&, int32_t, const ui::Dataspace) {} } // namespace android -- cgit v1.2.3-59-g8ed1b