Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index ee30c9b21b03fc5f9a69dbdb13e224418c132981..ec70929d43a6e663a68f11f5349959407986f50d 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -323,12 +323,25 @@ class GrInvariantOutput; |
// Base class for Gr gradient effects |
class GrGradientEffect : public GrFragmentProcessor { |
public: |
+ struct CreateArgs { |
+ CreateArgs(GrContext* context, |
+ const SkGradientShaderBase* shader, |
+ const SkMatrix* matrix, |
+ SkShader::TileMode tileMode) |
+ : fContext(context) |
+ , fShader(shader) |
+ , fMatrix(matrix) |
+ , fTileMode(tileMode) {} |
+ |
+ GrContext* fContext; |
+ const SkGradientShaderBase* fShader; |
+ const SkMatrix* fMatrix; |
+ SkShader::TileMode fTileMode; |
+ }; |
+ |
class GLSLProcessor; |
- GrGradientEffect(GrContext* ctx, |
- const SkGradientShaderBase& shader, |
- const SkMatrix& matrix, |
- SkShader::TileMode tileMode); |
+ GrGradientEffect(const CreateArgs&); |
virtual ~GrGradientEffect(); |