From 605dd0fbce9dbb2a0d3313e13e161f2bd54870d7 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Wed, 12 Nov 2014 08:35:25 -0800 Subject: Move GrInvariantOutput out of GrProcessor and into its own class. This will help with the ability to subclass, add to, etc. GrInvariantOutput. Also it was simply getting a little too big to be a "supporting" subclass BUG=skia: Review URL: https://codereview.chromium.org/699943003 --- src/gpu/effects/GrSingleTextureEffect.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gpu/effects/GrSingleTextureEffect.h') diff --git a/src/gpu/effects/GrSingleTextureEffect.h b/src/gpu/effects/GrSingleTextureEffect.h index 836c54c234..efdf255552 100644 --- a/src/gpu/effects/GrSingleTextureEffect.h +++ b/src/gpu/effects/GrSingleTextureEffect.h @@ -9,8 +9,9 @@ #define GrSingleTextureEffect_DEFINED #include "GrFragmentProcessor.h" -#include "SkMatrix.h" #include "GrCoordTransform.h" +#include "GrInvariantOutput.h" +#include "SkMatrix.h" class GrTexture; @@ -38,7 +39,7 @@ protected: * the subclass output color will be a modulation of the input color with a value read from the * texture. */ - void updateInvariantOutputForModulation(InvariantOutput* inout) const { + void updateInvariantOutputForModulation(GrInvariantOutput* inout) const { if (GrPixelConfigIsOpaque(this->texture(0)->config())) { inout->mulByUnknownOpaqueColor(); } else { -- cgit v1.2.3