aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTestUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrTestUtils.cpp')
-rw-r--r--src/gpu/GrTestUtils.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp
index 1918ad61f9..d5565ca828 100644
--- a/src/gpu/GrTestUtils.cpp
+++ b/src/gpu/GrTestUtils.cpp
@@ -334,13 +334,17 @@ sk_sp<GrColorSpaceXform> TestColorXform(SkRandom* random) {
return gXforms[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gXforms)))];
}
-TestAsFPArgs::TestAsFPArgs(GrProcessorTestData* d)
- : fViewMatrixStorage(TestMatrix(d->fRandom))
- , fColorSpaceInfoStorage(skstd::make_unique<GrColorSpaceInfo>(TestColorSpace(d->fRandom),
- kRGBA_8888_GrPixelConfig))
- , fArgs(d->context(), &fViewMatrixStorage, nullptr, kNone_SkFilterQuality,
- fColorSpaceInfoStorage.get())
-{}
+TestAsFPArgs::TestAsFPArgs(GrProcessorTestData* d) {
+ fViewMatrixStorage = TestMatrix(d->fRandom);
+ fColorSpaceInfoStorage = skstd::make_unique<GrColorSpaceInfo>(TestColorSpace(d->fRandom),
+ kRGBA_8888_GrPixelConfig);
+
+ fArgs.fContext = d->context();
+ fArgs.fViewMatrix = &fViewMatrixStorage;
+ fArgs.fLocalMatrix = nullptr;
+ fArgs.fFilterQuality = kNone_SkFilterQuality;
+ fArgs.fDstColorSpaceInfo = fColorSpaceInfoStorage.get();
+}
TestAsFPArgs::~TestAsFPArgs() {}