summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTharaga Balachandran <tbalacha@codeaurora.org>2020-07-21 08:59:48 -0400
committerGerrit - the friendly Code Review server <code-review@localhost>2020-08-18 06:20:37 -0700
commitd0506ba5dbc5ec83eac04afaa3bb3e972565e198 (patch)
treedb60dae8ce0eb8cbb215a6230b2619f6c973b7cc
parente7c2fe6d2ed0e14d75714d2db16660d971670429 (diff)
gralloc: Remove default color space in AllocateBuffer()
The color space should be set explicitly by the producers, not set by default in gralloc. This change resolves CTS failures in CtsMediaV2TestCases#EncoderColorAspectsTest. CRs-Fixed: 2737311 Change-Id: Ia7c780ecc83af3ec742a810de6253fddcfdf66b8
-rw-r--r--gralloc/gr_buf_mgr.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp
index 539bb000..e939a623 100644
--- a/gralloc/gr_buf_mgr.cpp
+++ b/gralloc/gr_buf_mgr.cpp
@@ -940,11 +940,6 @@ Error BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_h
hnd->base_metadata = 0;
hnd->layer_count = layer_count;
- // set default csc as 709, but for video(yuv) its 601L
-
- ColorSpace_t colorSpace = (buffer_type == BUFFER_TYPE_VIDEO) ? ITU_R_601 : ITU_R_709;
- setMetaDataAndUnmap(hnd, UPDATE_COLOR_SPACE, reinterpret_cast<void *>(&colorSpace));
-
bool use_adreno_for_size = CanUseAdrenoForSize(buffer_type, usage);
if (use_adreno_for_size) {
setMetaDataAndUnmap(hnd, SET_GRAPHICS_METADATA, reinterpret_cast<void *>(&graphics_metadata));