SurfaceFlinger: fix color transfer test
Add support for color management in
LayerTransactionTest.SetColorTransformBasic.
If color management is enabled, some considerations are needed
for the expected color output.
Test: adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test
Change-Id: I7be7d561e7683fd57db0519932c4c308a6350c0d
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 9e47b3f..73c9d95 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -462,6 +462,7 @@
virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const;
status_t getCompositionPreference(ui::Dataspace* outDataSpace,
ui::PixelFormat* outPixelFormat) const override;
+ virtual bool isColorManagementUsed() const;
/* ------------------------------------------------------------------------
* DeathRecipient interface