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/GrTextureMaker.cpp b/src/gpu/GrTextureMaker.cpp
index fa4d986..afbfbf0 100644
--- a/src/gpu/GrTextureMaker.cpp
+++ b/src/gpu/GrTextureMaker.cpp
@@ -16,8 +16,8 @@
sk_sp<GrTextureProxy> GrTextureMaker::onRefTextureProxyForParams(const GrSamplerState& params,
bool willBeMipped,
SkScalar scaleAdjust[2]) {
- if (this->width() > fContext->contextPriv().caps()->maxTextureSize() ||
- this->height() > fContext->contextPriv().caps()->maxTextureSize()) {
+ if (this->width() > fContext->priv().caps()->maxTextureSize() ||
+ this->height() > fContext->priv().caps()->maxTextureSize()) {
return nullptr;
}
@@ -28,10 +28,10 @@
bool needsCopyForMipsOnly = false;
if (original) {
if (!params.isRepeated() ||
- !GrGpu::IsACopyNeededForRepeatWrapMode(fContext->contextPriv().caps(), original.get(),
+ !GrGpu::IsACopyNeededForRepeatWrapMode(fContext->priv().caps(), original.get(),
original->width(), original->height(),
params.filter(), ©Params, scaleAdjust)) {
- needsCopyForMipsOnly = GrGpu::IsACopyNeededForMips(fContext->contextPriv().caps(),
+ needsCopyForMipsOnly = GrGpu::IsACopyNeededForMips(fContext->priv().caps(),
original.get(), params.filter(),
©Params);
if (!needsCopyForMipsOnly) {
@@ -40,14 +40,14 @@
}
} else {
if (!params.isRepeated() ||
- !GrGpu::IsACopyNeededForRepeatWrapMode(fContext->contextPriv().caps(), nullptr,
+ !GrGpu::IsACopyNeededForRepeatWrapMode(fContext->priv().caps(), nullptr,
this->width(), this->height(),
params.filter(), ©Params, scaleAdjust)) {
return this->refOriginalTextureProxy(willBeMipped, AllowedTexGenType::kAny);
}
}
- GrProxyProvider* proxyProvider = fContext->contextPriv().proxyProvider();
+ GrProxyProvider* proxyProvider = fContext->priv().proxyProvider();
GrSurfaceOrigin origOrigin = original ? original->origin() : kTopLeft_GrSurfaceOrigin;
GrUniqueKey copyKey;