summaryrefslogtreecommitdiff
path: root/libs/input/VelocityControl.cpp
diff options
context:
space:
mode:
author Galia Peycheva <galinap@google.com> 2023-08-23 17:32:57 +0000
committer Galia Peycheva <galinap@google.com> 2023-08-23 17:49:54 +0000
commit2ca96f08b864b1d7dfb1440b44a0cf0d344e66d2 (patch)
tree0a7cd155ae9e8242589953fcb47378e36887cf28 /libs/input/VelocityControl.cpp
parent827d1acbe3249c2dce1ee667c5eafcdc0ffc57d2 (diff)
Fix BlurEffectLayerIsVisible test
The setBackgroundBlurRadius by design blurs the screen behind the layer requesting the blur. In the test the canvas is 256px, so when the blur layer is drawn, the blurring operation samples pixels also from outside of the canvasSize area. The color of the background behind the layer the test draws is red, so the checking detects tints of red, which are blended into our canvas, because of the blur. To address that, this CL makes two changes: - change the second color in the test to red instead of green, to match the background color - restricts the check to only traverse a portion of the canvas vertically. We stop the Y traversal at a point where there is no interference in the blue area from any sampled red colors from the background Bug: 200059958 Test: atest EffectLayerTest#BlurEffectLayerIsVisible --iterations=100 Change-Id: If38f3d85b97d70cbd2b4bba308d2870936d7a49f
Diffstat (limited to 'libs/input/VelocityControl.cpp')
0 files changed, 0 insertions, 0 deletions