Move GrPathRenderer and GrPathRendererChain to skgpu::v1 namespace
Bug: skia:11837
Change-Id: I42abcd3724ac1e2c71d3bd13ff6295a4683af5e0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/440261
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/PathRendererCacheTests.cpp b/tests/PathRendererCacheTests.cpp
index c602bbe..70cc02e 100644
--- a/tests/PathRendererCacheTests.cpp
+++ b/tests/PathRendererCacheTests.cpp
@@ -33,7 +33,7 @@
static void draw_path(GrRecordingContext* rContext,
skgpu::v1::SurfaceDrawContext* sdc,
const SkPath& path,
- GrPathRenderer* pr,
+ skgpu::v1::PathRenderer* pr,
GrAAType aaType,
const GrStyle& style,
float scaleX = 1.f) {
@@ -48,16 +48,16 @@
}
SkMatrix matrix = SkMatrix::I();
matrix.setScaleX(scaleX);
- GrPathRenderer::DrawPathArgs args{rContext,
- std::move(paint),
- &GrUserStencilSettings::kUnused,
- sdc,
- nullptr,
- &clipConservativeBounds,
- &matrix,
- &shape,
- aaType,
- false};
+ skgpu::v1::PathRenderer::DrawPathArgs args{rContext,
+ std::move(paint),
+ &GrUserStencilSettings::kUnused,
+ sdc,
+ nullptr,
+ &clipConservativeBounds,
+ &matrix,
+ &shape,
+ aaType,
+ false};
pr->drawPath(args);
}
@@ -73,7 +73,7 @@
static void test_path(skiatest::Reporter* reporter,
std::function<SkPath(void)> createPath,
- std::function<GrPathRenderer*(GrRecordingContext*)> createPathRenderer,
+ std::function<skgpu::v1::PathRenderer*(GrRecordingContext*)> makePathRenderer,
int expected,
bool checkListeners,
GrAAType aaType = GrAAType::kNone,
@@ -90,7 +90,7 @@
return;
}
- sk_sp<GrPathRenderer> pathRenderer(createPathRenderer(dContext.get()));
+ sk_sp<skgpu::v1::PathRenderer> pathRenderer(makePathRenderer(dContext.get()));
SkPath path = createPath();
// Initially, cache only has the render target context