diff options
author | Hampus Wessman <hampus.wessman@sonymobile.com> | 2013-04-15 12:26:51 +0200 |
---|---|---|
committer | Ed Savage-Jones <edward.savage-jones@sonymobile.com> | 2017-07-27 13:44:00 +0000 |
commit | 8673c2adc72069a25aaa99776fec7c93495daa07 (patch) | |
tree | 3101bd35bde2cc5725554315a3053455377fcb02 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 9b9e823096ebee3a39e1a3e36b6c6a60f2f38d05 (diff) |
Fix graphical artifact in the fisheye effect
The fisheye effect generates a graphical artifact close to the center of
the picture, due to bad precision and division by zero in the shader.
The problem is fixed by making a small change in the shader, so that the
picture is uniformly scaled close to the center instead. This avoids the
problem and looks as expected, without affecting the performance.
Bug: 64107054
Test: Manual - Install dev sample HelloEffects and use the 'fisheye'
from the overflow. There is a small artifact in the center of the puppy
without this patch applied. Think of the puppies!!
Change-Id: I063f60facd30708db29ff544fdb47ac896e3d54b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions