aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureParamsAdjuster.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-01-20 06:18:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-20 06:18:10 -0800
commite179a9167f71dfc41668b05d40082aae76367fa6 (patch)
treec686e482924b58a9422cb66f24050a5de7a17188 /src/gpu/GrTextureParamsAdjuster.h
parent31d59e71cf5a571ff903d64ba2a6f17b715bfcfb (diff)
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
Diffstat (limited to 'src/gpu/GrTextureParamsAdjuster.h')
-rw-r--r--src/gpu/GrTextureParamsAdjuster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrTextureParamsAdjuster.h b/src/gpu/GrTextureParamsAdjuster.h
index 103bcbf720..7279ed6252 100644
--- a/src/gpu/GrTextureParamsAdjuster.h
+++ b/src/gpu/GrTextureParamsAdjuster.h
@@ -153,6 +153,8 @@ private:
SkTLazy<SkIRect> fContentArea;
GrTexture* fOriginal;
+ GrTexture* refCopy(const CopyParams &copyParams);
+
typedef GrTextureProducer INHERITED;
};