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/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
index 27b4248..972dff3 100644
--- a/src/gpu/SkGr.cpp
+++ b/src/gpu/SkGr.cpp
@@ -148,11 +148,11 @@
sk_sp<GrTextureProxy> GrCopyBaseMipMapToTextureProxy(GrContext* ctx, GrTextureProxy* baseProxy) {
SkASSERT(baseProxy);
- if (!ctx->contextPriv().caps()->isConfigCopyable(baseProxy->config())) {
+ if (!ctx->priv().caps()->isConfigCopyable(baseProxy->config())) {
return nullptr;
}
- GrProxyProvider* proxyProvider = ctx->contextPriv().proxyProvider();
+ GrProxyProvider* proxyProvider = ctx->priv().proxyProvider();
GrSurfaceDesc desc;
desc.fFlags = kNone_GrSurfaceFlags;
desc.fWidth = baseProxy->width();
@@ -172,8 +172,7 @@
}
// Copy the base layer to our proxy
- sk_sp<GrSurfaceContext> sContext =
- ctx->contextPriv().makeWrappedSurfaceContext(proxy);
+ sk_sp<GrSurfaceContext> sContext = ctx->priv().makeWrappedSurfaceContext(proxy);
SkASSERT(sContext);
SkAssertResult(sContext->copy(baseProxy));
@@ -378,7 +377,7 @@
GrPaint* grPaint) {
// Convert SkPaint color to 4f format in the destination color space
SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo,
- *context->contextPriv().caps());
+ *context->priv().caps());
const GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo);