diff options
author | Peiyong Lin <lpy@google.com> | 2018-09-24 17:01:27 -0700 |
---|---|---|
committer | Peiyong Lin <lpy@google.com> | 2018-09-24 17:11:29 -0700 |
commit | c2678ba9b56f7e9a18a9a3ef8d98385a712df027 (patch) | |
tree | 44d3554fe3b4f9f19473e85250b9a2952fc2da80 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 043a3a713de8864afb04b3fc029bfc1155c334b3 (diff) |
[GLUtils] Add support for GL_SRGB8_ALPHA8.
When a GL surface is configured as EGL_GL_COLORSPACE_SRGB_KHR, the pixel value
from fragment shader will be gamma-ed, to de-gamma the pixel value in fragment
shader, the texture uploaded through glTexImage2D needs to specify the internal
format as GL_SRGB8_ALPHA8. For backward compatibility, GLUtils should never
pick this internal format by itself, but it should allow developer to pass this
internal format if they really want to.
BUG: N/A
Test: Build, flash, boot and run my own test apk
Change-Id: Ic43c2f2e3533ebb41c1a85b33964c1f19ac74a7c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions