diff options
author | 2014-11-12 08:35:25 -0800 | |
---|---|---|
committer | 2014-11-12 08:35:25 -0800 | |
commit | 605dd0fbce9dbb2a0d3313e13e161f2bd54870d7 (patch) | |
tree | ee19a010a90d3b29baebbf50f5b1221923d3371b /src/gpu/effects/GrDitherEffect.cpp | |
parent | e4bf793120d3bfc9b003d11880a3fb73ff2b89e9 (diff) |
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
Diffstat (limited to 'src/gpu/effects/GrDitherEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrDitherEffect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp index 643829b848..37655a7116 100644 --- a/src/gpu/effects/GrDitherEffect.cpp +++ b/src/gpu/effects/GrDitherEffect.cpp @@ -7,7 +7,7 @@ #include "gl/builders/GrGLProgramBuilder.h" #include "GrDitherEffect.h" - +#include "GrInvariantOutput.h" #include "gl/GrGLProcessor.h" #include "gl/GrGLSL.h" #include "GrTBackendProcessorFactory.h" @@ -42,15 +42,15 @@ private: // All dither effects are equal virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE { return true; } - virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; + virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVERRIDE; GR_DECLARE_FRAGMENT_PROCESSOR_TEST; typedef GrFragmentProcessor INHERITED; }; -void DitherEffect::onComputeInvariantOutput(InvariantOutput* inout) const { - inout->setToUnknown(InvariantOutput::kWill_ReadInput); +void DitherEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const { + inout->setToUnknown(GrInvariantOutput::kWill_ReadInput); } ////////////////////////////////////////////////////////////////////////////// |