OSDN Git Service

Default dataspace must be UNKNOWN for compatibility
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Fri, 5 May 2017 19:30:25 +0000 (13:30 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Mon, 8 May 2017 17:20:17 +0000 (11:20 -0600)
commit1d4f7a281c8380c05c3e86998f8ff653e7e5470c
treed3ecee230499c3f39880b57a7f7a674d1b9f0b6c
parentbd32a5d7d27158cc31016fc1de39adf7ee2cd06f
Default dataspace must be UNKNOWN for compatibility

The first iteration of getColorSpaceAttribute would
cause the dataSpace to become HAL_DATASPACE_SRGB_LINEAR.
While technically correct, that's not what applications
are expecting. This change makes sure that we only
change the default if the application specifically asked
for the change. That keeps us backward compatible
behavior-wise.
Test: logcat and verify that we do not see SRGB_LINEAR
Bug: 37946330

Change-Id: I3265f53d2ff431405e7cf40e04e8422a63afeb62
opengl/libs/EGL/eglApi.cpp