summaryrefslogtreecommitdiff
path: root/libs/renderengine/RenderEngine.cpp
diff options
context:
space:
mode:
author Galia Peycheva <galinap@google.com> 2021-03-08 15:14:05 +0100
committer Galia Peycheva <galinap@google.com> 2021-03-09 08:48:28 +0100
commit561d05c18f127e2e43e93c82a559c537fd25ec52 (patch)
tree845a377286abc006914befdd8c9cca0f58fc0531 /libs/renderengine/RenderEngine.cpp
parent44b26bda8ddfd868d4a89ddb943cb636d7ebba70 (diff)
Fix blur sampling outside bounds of layer
The image that the blur shader uses is the screenshot of the whole screen, translated to the start of the blurRect. However, nothing stops the shader from sampling outside of the right/bottom edges of the blurRect. As a result, the blurring takes samples from outside of the layer bounds. This CL restricts the blur shader to sample the blurRect edge color when it tries to sample outside the blurRect. Bug: 167166562 Test: atest SurfaceFlinger_test -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=Layer*Tests/Layer*Test.SetBackgroundBlurRadiusSimple*" Change-Id: I5f8f7c4a87cbcd3b0cb080720e554119d8d07f69
Diffstat (limited to 'libs/renderengine/RenderEngine.cpp')
0 files changed, 0 insertions, 0 deletions