Index: tests/GpuColorFilterTest.cpp |
diff --git a/tests/GpuColorFilterTest.cpp b/tests/GpuColorFilterTest.cpp |
index a61fe0b545f0ba41de7d14c1ff67f8ffe9d4f5e4..202756b0e6926e14955bbc8563f5d5151f5829f4 100644 |
--- a/tests/GpuColorFilterTest.cpp |
+++ b/tests/GpuColorFilterTest.cpp |
@@ -99,14 +99,12 @@ |
const GetConstantComponentTestCase& test = filterTests[i]; |
SkAutoTUnref<SkColorFilter> cf(SkColorFilter::CreateModeFilter(test.filterColor, test.filterMode)); |
SkAutoTUnref<GrFragmentProcessor> effect(cf->asFragmentProcessor(grContext)); |
- GrProcessor::InvariantOutput inout; |
- inout.fColor = test.inputColor; |
- inout.fValidFlags = test.inputComponents; |
- inout.fIsSingleComponent = false; |
- effect->computeInvariantOutput(&inout); |
+ GrColor color = test.inputColor; |
+ uint32_t components = test.inputComponents; |
+ effect->getConstantColorComponents(&color, &components); |
- REPORTER_ASSERT(reporter, filterColor(inout.fColor, inout.fValidFlags) == test.outputColor); |
- REPORTER_ASSERT(reporter, test.outputComponents == inout.fValidFlags); |
+ REPORTER_ASSERT(reporter, filterColor(color, components) == test.outputColor); |
+ REPORTER_ASSERT(reporter, test.outputComponents == components); |
} |
} |