Update more tests to use the GrDirectContext/GrRecordingContext pair
Change-Id: I66011fef006398a95c9f54af97c5c1092b8b7415
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/305497
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/ProgramsTest.cpp b/tests/ProgramsTest.cpp
index ece52c6..3aa343e 100644
--- a/tests/ProgramsTest.cpp
+++ b/tests/ProgramsTest.cpp
@@ -145,9 +145,10 @@
static const int kRenderTargetHeight = 1;
static const int kRenderTargetWidth = 1;
-static std::unique_ptr<GrRenderTargetContext> random_render_target_context(GrContext* context,
- SkRandom* random,
- const GrCaps* caps) {
+static std::unique_ptr<GrRenderTargetContext> random_render_target_context(
+ GrRecordingContext* rContext,
+ SkRandom* random,
+ const GrCaps* caps) {
GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
: kBottomLeft_GrSurfaceOrigin;
@@ -159,7 +160,7 @@
sampleCnt = std::max(1, sampleCnt);
return GrRenderTargetContext::Make(
- context, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact,
+ rContext, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact,
{kRenderTargetWidth, kRenderTargetHeight}, sampleCnt, GrMipmapped::kNo,
GrProtected::kNo, origin);
}