From e179a9167f71dfc41668b05d40082aae76367fa6 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Wed, 20 Jan 2016 06:18:10 -0800 Subject: 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 --- src/gpu/GrTextureParamsAdjuster.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/GrTextureParamsAdjuster.h') 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 fContentArea; GrTexture* fOriginal; + GrTexture* refCopy(const CopyParams ©Params); + typedef GrTextureProducer INHERITED; }; -- cgit v1.2.3