Index: src/gpu/effects/Gr1DKernelEffect.h |
diff --git a/src/gpu/effects/Gr1DKernelEffect.h b/src/gpu/effects/Gr1DKernelEffect.h |
index 519d6dbeb5663c653583b567fdab387a9a4f81f6..2d4aa230fefee66d32cbf61bba44d9e4c7a0dfa8 100644 |
--- a/src/gpu/effects/Gr1DKernelEffect.h |
+++ b/src/gpu/effects/Gr1DKernelEffect.h |
@@ -28,6 +28,8 @@ public: |
kY_Direction, |
}; |
+ // Constructor using default nearest-neighbor sampling for the input texture |
+ // filter mode. |
Gr1DKernelEffect(GrTexture* texture, |
Direction direction, |
int radius) |
@@ -35,6 +37,16 @@ public: |
, fDirection(direction) |
, fRadius(radius) {} |
+ Gr1DKernelEffect(GrTexture* texture, |
+ Direction direction, |
+ int radius, |
+ GrTextureParams::FilterMode filterMode) |
+ : INHERITED(texture, |
+ GrCoordTransform::MakeDivByTextureWHMatrix(texture), |
+ filterMode) |
+ , fDirection(direction) |
+ , fRadius(radius) {} |
+ |
virtual ~Gr1DKernelEffect() {}; |
static int WidthFromRadius(int radius) { return 2 * radius + 1; } |