From 3b8af078281a5a20f951b9fd84f38d92b8f6217b Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 2 Oct 2014 09:57:48 -0700 Subject: 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: Review URL: https://codereview.chromium.org/608253002 --- src/gpu/effects/GrSimpleTextureEffect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/effects/GrSimpleTextureEffect.h') diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h index dc9cf85e0f..88c5ca21a1 100644 --- a/src/gpu/effects/GrSimpleTextureEffect.h +++ b/src/gpu/effects/GrSimpleTextureEffect.h @@ -49,8 +49,6 @@ public: static const char* Name() { return "Texture"; } - virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; - typedef GrGLSimpleTextureEffect GLProcessor; virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; @@ -75,6 +73,8 @@ private: return this->hasSameTextureParamsMatrixAndSourceCoords(ste); } + virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; + GR_DECLARE_FRAGMENT_PROCESSOR_TEST; typedef GrSingleTextureEffect INHERITED; -- cgit v1.2.3