whole-word replace renderTargetContext with surfaceDrawContext
TBR:egdaniel@google.com
Change-Id: Ia471dfc1278bcbeb2b485e4deeb3e932060c50a6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343576
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/tests/ProgramsTest.cpp b/tests/ProgramsTest.cpp
index 0008f7c..1963c0a 100644
--- a/tests/ProgramsTest.cpp
+++ b/tests/ProgramsTest.cpp
@@ -281,9 +281,9 @@
static const int NUM_TESTS = 1024;
for (int t = 0; t < NUM_TESTS; t++) {
// setup random render target(can fail)
- auto renderTargetContext = random_render_target_context(direct, &random, caps);
- if (!renderTargetContext) {
- SkDebugf("Could not allocate renderTargetContext");
+ auto surfaceDrawContext = random_render_target_context(direct, &random, caps);
+ if (!surfaceDrawContext) {
+ SkDebugf("Could not allocate surfaceDrawContext");
return false;
}
@@ -291,18 +291,18 @@
GrProcessorTestData ptd(&random, direct, /*maxTreeDepth=*/1, SK_ARRAY_COUNT(views), views);
set_random_color_coverage_stages(&paint, &ptd, maxStages, maxLevels);
set_random_xpf(&paint, &ptd);
- GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint));
+ GrDrawRandomOp(&random, surfaceDrawContext.get(), std::move(paint));
}
// Flush everything, test passes if flush is successful(ie, no asserts are hit, no crashes)
direct->flush(GrFlushInfo());
direct->submit(false);
// Validate that GrFPs work correctly without an input.
- auto renderTargetContext = GrSurfaceDrawContext::Make(
+ auto surfaceDrawContext = GrSurfaceDrawContext::Make(
direct, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact,
{kRenderTargetWidth, kRenderTargetHeight});
- if (!renderTargetContext) {
- SkDebugf("Could not allocate a renderTargetContext");
+ if (!surfaceDrawContext) {
+ SkDebugf("Could not allocate a surfaceDrawContext");
return false;
}
@@ -318,7 +318,7 @@
auto fp = GrFragmentProcessorTestFactory::MakeIdx(i, &ptd);
auto blockFP = BlockInputFragmentProcessor::Make(std::move(fp));
paint.setColorFragmentProcessor(std::move(blockFP));
- GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint));
+ GrDrawRandomOp(&random, surfaceDrawContext.get(), std::move(paint));
direct->flush(GrFlushInfo());
direct->submit(false);