GrRenderTargetContext->GrSurfaceDrawContext
Just the class/files. variable names and additional comments to follow.
Change-Id: Ic03d07fd5009eaf3d706c2536486a117328963fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342617
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrStencilMaskHelper.cpp b/src/gpu/GrStencilMaskHelper.cpp
index 9e99e0fe..b3e23cc 100644
--- a/src/gpu/GrStencilMaskHelper.cpp
+++ b/src/gpu/GrStencilMaskHelper.cpp
@@ -272,7 +272,7 @@
return gUserToClipTable[fillInverted][op];
}
-static void draw_stencil_rect(GrRenderTargetContext* rtc, const GrHardClip& clip,
+static void draw_stencil_rect(GrSurfaceDrawContext* rtc, const GrHardClip& clip,
const GrUserStencilSettings* ss, const SkMatrix& matrix,
const SkRect& rect, GrAA aa) {
GrPaint paint;
@@ -280,7 +280,8 @@
rtc->stencilRect(&clip, ss, std::move(paint), aa, matrix, rect);
}
-static void draw_path(GrRecordingContext* context, GrRenderTargetContext* rtc,
+static void draw_path(GrRecordingContext* context,
+ GrSurfaceDrawContext* rtc,
GrPathRenderer* pr, const GrHardClip& clip, const SkIRect& bounds,
const GrUserStencilSettings* ss, const SkMatrix& matrix,
const GrStyledShape& shape, GrAA aa) {
@@ -304,7 +305,8 @@
pr->drawPath(args);
}
-static void stencil_path(GrRecordingContext* context, GrRenderTargetContext* rtc,
+static void stencil_path(GrRecordingContext* context,
+ GrSurfaceDrawContext* rtc,
GrPathRenderer* pr, const GrFixedClip& clip, const SkMatrix& matrix,
const GrStyledShape& shape, GrAA aa) {
GrPathRenderer::StencilPathArgs args;
@@ -319,7 +321,7 @@
pr->stencilPath(args);
}
-static GrAA supported_aa(GrRenderTargetContext* rtc, GrAA aa) {
+static GrAA supported_aa(GrSurfaceDrawContext* rtc, GrAA aa) {
// MIXED SAMPLES TODO: We can use stencil with mixed samples as well.
if (rtc->numSamples() > 1) {
if (rtc->caps()->multisampleDisableSupport()) {