Rename GrContext::contextPriv to priv
Mechanical. This makes the priv() accessor the same for all the context types.
Change-Id: I40850eb05a33b8d7cc3eabdd42226d24b2ba58aa
Reviewed-on: https://skia-review.googlesource.com/c/189164
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tests/PathRendererCacheTests.cpp b/tests/PathRendererCacheTests.cpp
index 4b7f969..505e5e3 100644
--- a/tests/PathRendererCacheTests.cpp
+++ b/tests/PathRendererCacheTests.cpp
@@ -77,12 +77,12 @@
sk_sp<GrContext> ctx = GrContext::MakeMock(nullptr);
// The cache needs to be big enough that nothing gets flushed, or our expectations can be wrong
ctx->setResourceCacheLimits(100, 8000000);
- GrResourceCache* cache = ctx->contextPriv().getResourceCache();
+ GrResourceCache* cache = ctx->priv().getResourceCache();
const GrBackendFormat format =
- ctx->contextPriv().caps()->getBackendFormatFromColorType(kRGBA_8888_SkColorType);
+ ctx->priv().caps()->getBackendFormatFromColorType(kRGBA_8888_SkColorType);
- sk_sp<GrRenderTargetContext> rtc(ctx->contextPriv().makeDeferredRenderTargetContext(
+ sk_sp<GrRenderTargetContext> rtc(ctx->priv().makeDeferredRenderTargetContext(
format, SkBackingFit::kApprox, 800, 800, kRGBA_8888_GrPixelConfig, nullptr, 1,
GrMipMapped::kNo, kTopLeft_GrSurfaceOrigin));
if (!rtc) {
@@ -135,7 +135,7 @@
// Test that deleting the original path invalidates the textures cached by the SW path renderer
DEF_GPUTEST(SoftwarePathRendererCacheTest, reporter, /* options */) {
auto createPR = [](GrContext* ctx) {
- return new GrSoftwarePathRenderer(ctx->contextPriv().proxyProvider(), true);
+ return new GrSoftwarePathRenderer(ctx->priv().proxyProvider(), true);
};
// Software path renderer creates a mask texture and renders with a non-AA rect, but the flush