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/PrimitiveProcessorTest.cpp b/tests/PrimitiveProcessorTest.cpp
index a4ab132..635220d 100644
--- a/tests/PrimitiveProcessorTest.cpp
+++ b/tests/PrimitiveProcessorTest.cpp
@@ -174,9 +174,9 @@
GrGpu* gpu = context->priv().getGpu();
#endif
- auto renderTargetContext = GrSurfaceDrawContext::Make(
+ auto surfaceDrawContext = GrSurfaceDrawContext::Make(
context, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kApprox, {1, 1});
- if (!renderTargetContext) {
+ if (!surfaceDrawContext) {
ERRORF(reporter, "Could not create render target context.");
return;
}
@@ -192,18 +192,18 @@
REPORTER_ASSERT(reporter, gpu->stats()->numFailedDraws() == 0);
#endif
// Adding discard to appease vulkan validation warning about loading uninitialized data on draw
- renderTargetContext->discard();
+ surfaceDrawContext->discard();
GrPaint grPaint;
// This one should succeed.
- renderTargetContext->addDrawOp(Op::Make(context, attribCnt));
+ surfaceDrawContext->addDrawOp(Op::Make(context, attribCnt));
context->flushAndSubmit();
#if GR_GPU_STATS
REPORTER_ASSERT(reporter, gpu->stats()->numDraws() == 1);
REPORTER_ASSERT(reporter, gpu->stats()->numFailedDraws() == 0);
#endif
context->priv().resetGpuStats();
- renderTargetContext->addDrawOp(Op::Make(context, attribCnt + 1));
+ surfaceDrawContext->addDrawOp(Op::Make(context, attribCnt + 1));
context->flushAndSubmit();
#if GR_GPU_STATS
REPORTER_ASSERT(reporter, gpu->stats()->numDraws() == 0);