Index: src/gpu/effects/GrTextureDomain.h |
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h |
index 0331260be93d9d801f81cdf3a2632faee60d0a5f..7efd9f2dee1850d1d054582be3e577b9df5ff829 100644 |
--- a/src/gpu/effects/GrTextureDomain.h |
+++ b/src/gpu/effects/GrTextureDomain.h |
@@ -67,19 +67,6 @@ |
texelRect.fBottom * hInv |
}; |
return result; |
- } |
- |
- static const SkRect MakeTexelDomainForMode(const GrTexture* texture, const SkIRect& texelRect, Mode mode) { |
- // For Clamp mode, inset by half a texel. |
- SkScalar wInv = SK_Scalar1 / texture->width(); |
- SkScalar hInv = SK_Scalar1 / texture->height(); |
- SkScalar inset = mode == kClamp_Mode ? SK_ScalarHalf : 0; |
- return SkRect::MakeLTRB( |
- (texelRect.fLeft + inset) * wInv, |
- (texelRect.fTop + inset) * hInv, |
- (texelRect.fRight - inset) * wInv, |
- (texelRect.fBottom - inset) * hInv |
- ); |
} |
bool operator== (const GrTextureDomain& that) const { |