Add origin back to GrCopyRenderTask

Will be needed for repositionable DDLs.

Change-Id: I6dacf51bd36cfbe1c54a9350987f17a6d18cf3c4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357776
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrSurfaceContext.cpp b/src/gpu/GrSurfaceContext.cpp
index 13c15c3..95088dc 100644
--- a/src/gpu/GrSurfaceContext.cpp
+++ b/src/gpu/GrSurfaceContext.cpp
@@ -1036,22 +1036,11 @@
         return false;
     }
 
-    if (!GrClipSrcRectAndDstPoint(this->dimensions(), src->dimensions(), srcRect, dstPoint,
-                                  &srcRect, &dstPoint)) {
-        return false;
-    }
-
-    if (this->origin() == kBottomLeft_GrSurfaceOrigin) {
-        int rectHeight = srcRect.height();
-        srcRect.fTop = src->backingStoreDimensions().height() - srcRect.fBottom;
-        srcRect.fBottom = srcRect.fTop + rectHeight;
-        dstPoint.fY = this->asSurfaceProxy()->backingStoreDimensions().height() -
-                      (dstPoint.fY + rectHeight);
-    }
     return this->drawingManager()->newCopyRenderTask(std::move(src),
                                                      srcRect,
                                                      this->asSurfaceProxyRef(),
-                                                     dstPoint);
+                                                     dstPoint,
+                                                     this->origin());
 }
 
 std::unique_ptr<GrSurfaceFillContext> GrSurfaceContext::rescale(const GrImageInfo& info,