diff options
author | egdaniel <egdaniel@google.com> | 2014-10-03 06:24:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-03 06:24:12 -0700 |
commit | 1a8ecdfb73a15de600d5779b75d7c4b61863c50b (patch) | |
tree | 60463286864f73929d9c2f1d730e44b7ddee3597 /src/gpu/effects/GrBicubicEffect.h | |
parent | d751ac01a3a887bc2d71146fc7353a5f33730043 (diff) |
Add isSingleComponent bool to getConstantColorComponent
Initial step to allowing effects to use/output 1 or 4 color/coverage components. This cl doesn't change any current logic and all effects still assume they are working with 4 components.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/3b8af078281a5a20f951b9fd84f38d92b8f6217b
Review URL: https://codereview.chromium.org/608253002
Diffstat (limited to 'src/gpu/effects/GrBicubicEffect.h')
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h index 03476da38f..e36aa8d1d5 100644 --- a/src/gpu/effects/GrBicubicEffect.h +++ b/src/gpu/effects/GrBicubicEffect.h @@ -29,7 +29,6 @@ public: typedef GrGLBicubicEffect GLProcessor; virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; - virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; const GrTextureDomain& domain() const { return fDomain; } @@ -93,6 +92,8 @@ private: const SkMatrix &matrix, const SkRect& domain); virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; + float fCoefficients[16]; GrTextureDomain fDomain; |