Move readSurfacePixels and writePixelSurface into GrSurfaceContext.

Change-Id: I22770826e973a0e4c881bc74bcb3793c604887c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/218193
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tools/gpu/ProxyUtils.cpp b/tools/gpu/ProxyUtils.cpp
index 9483088..3108921 100644
--- a/tools/gpu/ProxyUtils.cpp
+++ b/tools/gpu/ProxyUtils.cpp
@@ -78,8 +78,7 @@
     if (!sContext) {
         return nullptr;
     }
-    if (!context->priv().writeSurfacePixels(sContext.get(), 0, 0, width, height, colorType,
-                                            nullptr, data, rowBytes)) {
+    if (!sContext->writePixels(context, 0, 0, width, height, colorType, nullptr, data, rowBytes)) {
         return nullptr;
     }
     return proxy;