Remove a few GrSurfaceProxy::config() usages

Change-Id: I9da9e1dadea71701c97994f8df1e7b5912989672
Bug: skia:6718
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/243159
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrCopyRenderTask.cpp b/src/gpu/GrCopyRenderTask.cpp
index 34af9a1..23e8086 100644
--- a/src/gpu/GrCopyRenderTask.cpp
+++ b/src/gpu/GrCopyRenderTask.cpp
@@ -14,7 +14,8 @@
 sk_sp<GrRenderTask> GrCopyRenderTask::Make(sk_sp<GrSurfaceProxy> srcProxy,
                                            const SkIRect& srcRect,
                                            sk_sp<GrSurfaceProxy> dstProxy,
-                                           const SkIPoint& dstPoint) {
+                                           const SkIPoint& dstPoint,
+                                           const GrCaps* caps) {
     SkASSERT(dstProxy);
     SkASSERT(srcProxy);
     SkIRect clippedSrcRect;
@@ -24,7 +25,8 @@
                                   &clippedSrcRect, &clippedDstPoint)) {
         return nullptr;
     }
-    if (GrPixelConfigIsCompressed(dstProxy->config())) {
+
+    if (caps->isFormatCompressed(dstProxy->backendFormat())) {
         return nullptr;
     }