sdm: Add new flag to LayerRequest
- Add destination tonemap flag for the layer to specify that
the tonemap is needed by DSPP
- Change Primaries+Transfer to struct to align with
BlendColorSpace with SDM Extn.
Change-Id: Iab468c5eeb56ea496b9ca05b8fec5fc6af98e5a1
Crs-fixed: 2193209
diff --git a/sdm/libs/hwc2/hwc_tonemapper.h b/sdm/libs/hwc2/hwc_tonemapper.h
index e400d29..bc564eb 100644
--- a/sdm/libs/hwc2/hwc_tonemapper.h
+++ b/sdm/libs/hwc2/hwc_tonemapper.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2016 - 2017, The Linux Foundation. All rights reserved.
+* Copyright (c) 2016 - 2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -64,7 +64,7 @@
struct ToneMapConfig {
int type = 0;
- PrimariesTransfer blend_cs = {ColorPrimaries_BT709_5, Transfer_sRGB};
+ PrimariesTransfer blend_cs = {};
GammaTransfer transfer = Transfer_Max;
LayerBufferFormat format = kFormatRGBA8888;
bool secure = false;