Index: tests/GpuColorFilterTest.cpp |
diff --git a/tests/GpuColorFilterTest.cpp b/tests/GpuColorFilterTest.cpp |
index 82f5f31b3ea8bf803a210c86d3c5a5fbe590ede4..aeee3daf37860971fe4070d2e9f550024b8c3128 100644 |
--- a/tests/GpuColorFilterTest.cpp |
+++ b/tests/GpuColorFilterTest.cpp |
@@ -11,6 +11,7 @@ |
#include "GrContext.h" |
#include "GrContextFactory.h" |
#include "GrFragmentProcessor.h" |
+#include "GrInvariantOutput.h" |
#include "SkColorFilter.h" |
#include "SkGr.h" |
#include "Test.h" |
@@ -99,9 +100,9 @@ static void test_getConstantColorComponents(skiatest::Reporter* reporter, GrCont |
const GetConstantComponentTestCase& test = filterTests[i]; |
SkAutoTUnref<SkColorFilter> cf(SkColorFilter::CreateModeFilter(test.filterColor, test.filterMode)); |
SkAutoTUnref<GrFragmentProcessor> effect(cf->asFragmentProcessor(grContext)); |
- GrProcessor::InvariantOutput inout; |
- inout.setToOther(test.inputComponents, test.inputColor, |
- GrProcessor::InvariantOutput::kWill_ReadInput); |
+ GrInvariantOutput inout(test.inputColor, |
+ static_cast<GrColorComponentFlags>(test.inputComponents), |
+ false); |
effect->computeInvariantOutput(&inout); |
REPORTER_ASSERT(reporter, filterColor(inout.color(), inout.validFlags()) == test.outputColor); |