76dd77a6f5298bf0e7cb89ec570ab1578e3947fb |
|
10-May-2018 |
Peiyong Lin <lpy@google.com> |
[SurfaceFlinger] Add methods for setting legacy starution matrix. This patch adds methods for setting legacy saturation matrix for legacy sRGB content. Previously it was combined into the color transform matrix which was applied right before applying OETF, however, we want to apply the legacy staturation matrix right after applying EOTF. BUG: 78891890 Test: build Change-Id: I7709eab0857822e48c49237d6681f6e337b4d29e Merged-In: I7709eab0857822e48c49237d6681f6e337b4d29e
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
a296b0c232483ff2d80a814a1a39d02397ba559e |
|
01-May-2018 |
Peiyong Lin <lpy@google.com> |
[RenderEngine] Polish shader pipeline for HDR support. Previously we applied transform matrix between color spaces together with color matrix right before applying OETF. With HDR, we need to do transcoding and apply OOTF. And it's easier if we operate in XYZ color space. This patch essentially extends the pipeline with two matrices. After applying EOTF, input matrix will be applied to convert color into XYZ color space, and right before applying OETF, a combination of output transform matrix and color matrix will be applied to convert the color from XYZ color space to destination color space. Minor: Previously, if wide color gamut is supported and the output is sRGB, we failed to apply color matrix. This patch also fixes this issue by taking it into account under wide color gamut platform. BUG: 73825729 Test: build, flash Change-Id: I09af39375980a42bd84f387229d54e070f634519
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
fb069305e90947aeb76b72527f23aa24564f3c87 |
|
25-Apr-2018 |
Peiyong Lin <lpy@google.com> |
[SurfaceFlinger] Adapt min/max luminance from hardware composer. The luminance capability of the display is very important to HDR content. Previously, the minimum and maximum luminance were assumed as 0.0 and 500.0 respectively. This patch adapts the value returned from hardware composer and plumbs the value to RenderEngine. If hardware composer doesn't return valid values, 0.0 and 500.0 are still used as minimum and maximum luminance respectively. BUG: 73825729 BUG: 78574325 Test: Build, flash, watch video. Change-Id: Ie1dc93f5cca7068580d6ae19da43346491196d7c
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
566a3b4a1d1a2a6d38257113700eea92aa44ea2b |
|
10-Jan-2018 |
Peiyong Lin <lpy@google.com> |
[SurfaceFlinger] Replace NULL with nullptr. Test: make Change-Id: Ia0ecb3160cd5fddf22fb7100c1759d62e723d0b7
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
b027f805c9a18893556353f44008683e20ebe049 |
|
29-Nov-2017 |
Chia-I Wu <olv@google.com> |
surfaceflinger: run clang-format on RenderEngine Run clang-format on all files. In Program constructor, use mat4() instead of manually construct a 4x4 identity matrix. Test: builds Change-Id: I84e5eec06d103383c715b1f03c521bbcca5bd92c
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
89e197aa8d92f519643fa8a4f0b5128e7e57ea34 |
|
06-Oct-2017 |
chaviw <chaviw@google.com> |
Convert half4 color to float array for buffer copy Converts the half4 color object to a float array so it can be properly copied into a v4 float gl buffer. Change-Id: Ibdc104277e34cf7cb382f027f95fb8fdd5d63bb0 Fixes: 66910602 Test: Existing tests pass
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
13fdc49516d17f41e64e62e73c313b0928bf13cc |
|
27-Jun-2017 |
chaviw <chaviw@google.com> |
Added native functionality to create a color layer. Added a new layer that can draw a specified color and specified alpha. This will replace creating a dim layer and allow any colors, not just black, to be set for this layer. Test: Added tests to Transaction_test.cpp to test with a color and a color layer with alpha. Change-Id: I00a38d1bbc01093026f088c3347454281bdc2b8c
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
7823e124e00576e20e47ec717cbe8bc89f0f2bf2 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if possible - add system includes that are assumed as side effects - define LOG_TAG first Test: compile Bug: 31289077 Bug: 30465923 Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
a5e161b1207ef447a51e99856097d69d4a6111e1 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if required - add system includes that are assumed as side effects of log.h - modules that use SLOG should use SLOG for all logging (installd) - define LOG_TAG first - remove logging infrastructure if not used Test: build Bug: 31289077 Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
92dc3fc52cf097bd105460cf377779bdcf146d62 |
|
12-Mar-2014 |
Mark Salyzyn <salyzyn@google.com> |
native frameworks: 64-bit compile issues - Fix format (print/scanf) - Suppress unused argument warning messages (bonus) Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
ff2ed70fa30f04b90dd1a2c06ec2319e157152d7 |
|
02-Sep-2013 |
Mathias Agopian <mathias@google.com> |
color blindness enhancement This is an attempt at improving the experience of users with color vision impairement. At this time this feature can only be enabled for debugging: adb shell service call SurfaceFlinger 1014 i32 PARAM with PARAM: 0 : disabled 1 : protanomaly/protanopia simulation 2 : deuteranomaly/deuteranopia simulation 3 : tritanopia/tritanomaly simulation 11, 12, 13: same as above w/ attempted correction/enhancement The enhancement algorithm tries to spread the "error" such that tones that would otherwise appear similar can be distinguished. Bug: 9465644 Change-Id: I860f7eed0cb81f54ef9cf24ad78155b6395ade48
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
a8c386f1c36e916c1df18d41a22104d655a89817 |
|
27-Aug-2013 |
Mathias Agopian <mathias@google.com> |
switch to use mat4 Change-Id: I8283a989cfd2b74d53958150bc90298bc083fee7
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
49457ac092071a8f964f7f69156093657ccdc3d0 |
|
15-Aug-2013 |
Mathias Agopian <mathias@google.com> |
Encapsulate textures into their own Texture class the main reason for doing this is so that we can have access to informations about a texture (like its dimension) close to where we generate and use shaders in ES 2.0. Previously, there wasn't any way to get to a texture's size from a RenderEngine implementation. Bug: 8679321 Change-Id: I388b338a70d07e3e8177dde248710ea1e4c82dff
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|
3f84483382be2d528918cc1a6fbc6a7d68e0b181 |
|
08-Aug-2013 |
Mathias Agopian <mathias@google.com> |
SurfaceFlinger now uses GLES 2.x when available Bug: 8679321 Change-Id: I2b152d01fb4e2de2ea9fe87f1ddbd6826d7520d7
/frameworks/native/services/surfaceflinger/RenderEngine/Program.cpp
|