History log of /external/skia/gm/rectangletexture.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e179a9167f71dfc41668b05d40082aae76367fa6 20-Jan-2016 bsalomon <bsalomon@google.com> Texturing support for RECTANGLE textures.

Uses textureSize() to unnormalize texture coords when reading from a RECTANGLE texture. Because of this we also require a later GLSL version to use rectangle textures (1.40).

Note that this causes a issue with the bicubic effect. The texture coords seem to have poor precision and the result is ugly. textureSize() is intended as a workaround until effects can be updated to handle unnormalized coords themselves.

Updates places where we were looking for OpenGL version 3.2 for rectangle support. It was actually added in 3.1.

BUG=skia:3868

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1594483003

Review URL: https://codereview.chromium.org/1594483003
/external/skia/gm/rectangletexture.cpp