GrSurfaceContext not ref counted.
Also don't specify redundant width/height to SkGpuDevice.
Change-Id: I389df5c4b073c2c05632ba6b7c95b02a22dfaf98
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235824
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/text/GrAtlasManager.cpp b/src/gpu/text/GrAtlasManager.cpp
index 6ae06a4..bf57ca5 100644
--- a/src/gpu/text/GrAtlasManager.cpp
+++ b/src/gpu/text/GrAtlasManager.cpp
@@ -95,8 +95,8 @@
return false;
}
- sk_sp<GrSurfaceContext> sContext(context->priv().makeWrappedSurfaceContext(
- sk_ref_sp(sProxy), colorType, kUnknown_SkAlphaType));
+ auto sContext = context->priv().makeWrappedSurfaceContext(sk_ref_sp(sProxy), colorType,
+ kUnknown_SkAlphaType);
if (!sContext || !sContext->asTextureProxy()) {
return false;
}