From 4d53c44aa6e8e0d1b6537f83e4287e5a1423ac75 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 4 Nov 2016 11:54:32 -0400 Subject: Limit GL_TEXTURE_RECTANGLE filtering to bilinear. Adds a clamp for GrTexture filtering that can be set by a subclass at construction. The clamping is performed by GrTextureParams. GrGLTexture limits filtering to bilinear for rectangle and external textures. Also moves samplerType() to GrTexturePriv from GrTexture. BUG=skia:5932 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4352 Change-Id: I1f023d4f4133e7eb393367580c0558257e56c8db Reviewed-on: https://skia-review.googlesource.com/4352 Commit-Queue: Brian Salomon Reviewed-by: Chris Dalton --- src/gpu/effects/GrSimpleTextureEffect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/effects') diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h index 8242362a9c..fced736183 100644 --- a/src/gpu/effects/GrSimpleTextureEffect.h +++ b/src/gpu/effects/GrSimpleTextureEffect.h @@ -31,8 +31,8 @@ public: /* clamp mode */ static sk_sp Make(GrTexture* tex, sk_sp colorSpaceXform, - const SkMatrix& matrix, - GrTextureParams::FilterMode filterMode) { + const SkMatrix& matrix, + GrTextureParams::FilterMode filterMode) { return sk_sp( new GrSimpleTextureEffect(tex, std::move(colorSpaceXform), matrix, filterMode)); } -- cgit v1.2.3