diff options
author | Kevin F. Haggerty <haggertk@lineageos.org> | 2020-06-01 22:21:30 -0600 |
---|---|---|
committer | Kevin F. Haggerty <haggertk@lineageos.org> | 2020-06-01 22:21:30 -0600 |
commit | bf445fa9369441c8711d0b5968ec20d4c70ad583 (patch) | |
tree | 32c30b85a1b566da669fb49f8374830a7c98a5ca /sdm/include/utils/constants.h | |
parent | f6278091477f0c13d0b9906a051827d1c8ad1b7d (diff) | |
parent | 73352811c004e87b80ef587e04403f5e91d98619 (diff) | |
download | android_hardware_qcom_sdm845_display-lineage-17.1.tar.gz android_hardware_qcom_sdm845_display-lineage-17.1.tar.bz2 android_hardware_qcom_sdm845_display-lineage-17.1.zip |
Merge tag 'android-10.0.0_r37' into staging/lineage-17.1_merge-android-10.0.0_r37HEADlineage-17.1
Android 10.0.0 Release 37 (QQ3A.200605.001)
* tag 'android-10.0.0_r37':
sdm: Add support of SetLayerColorTransform with GL composition fallback
Change-Id: I0fc76ce81a365d377fe2cbf75cc50d331ec09ef3
Diffstat (limited to 'sdm/include/utils/constants.h')
-rw-r--r-- | sdm/include/utils/constants.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sdm/include/utils/constants.h b/sdm/include/utils/constants.h index 5efe3571..608b192d 100644 --- a/sdm/include/utils/constants.h +++ b/sdm/include/utils/constants.h @@ -75,6 +75,12 @@ namespace sdm { const int kPageSize = 4096; const uint32_t kGridSize = 129; // size used for non-linear transformation before Tone-mapping const uint32_t kLutDim = 17; // Dim of the 3d LUT for tone-mapping. + constexpr int kColorTransformMatrixSize = 16; + constexpr float kIdentityMatrix[kColorTransformMatrixSize] = { 1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, + 0.0, 0.0, 0.0, 1.0 }; + typedef void * Handle; |