[texmap] Borders on rotating images are hidden/wrongly rendered with edge distance...
authorJosé Dapena Paz <jdapena@igalia.com>
Tue, 17 Dec 2013 11:19:41 +0000 (12:19 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Dec 2013 19:35:54 +0000 (20:35 +0100)
commit3bb9504f1ba458fac713200cb4dfcb2592c8f0ea
tree1e9a74917e854849924fb658de0f300854e5cbd4
parent8a716a29721d900069d82878c45cf87a356adba3
[texmap] Borders on rotating images are hidden/wrongly rendered with edge distance antialiasing

https://bugs.webkit.org/show_bug.cgi?id=124653

Reviewed by Noam Rosenthal.

Texture mapper edge distance antialiasing texture sampling was causing
borders to be shaded (and made them almost disappear in some cases).
This was because calculation of sampling happened on vertex shader, so
the border of the texture would go to the border of the inflation area.

What algorithm should do is sampling the border pixel for all the
inflation area (it is the closest pixel to all the samples in
inflation area), and then use the standard sampling for the other
parts of the texture.

No new test because this is already covered by test
transforms/3d/point-mapping/3d-point-mapping.html

* platform/graphics/texmap/TextureMapperShaderProgram.cpp: fix edge
distance antialiasing texture sampling.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Task-number: QTBUG-34975
Change-Id: I77654e806d6b198680cb2e6c0dbc1a6adb295222
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp