From 7c525e62d405d57ae7a7742cf607b9770a83a0ab Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 12 Jun 2018 10:11:12 -0400 Subject: Plumb GrContext everywhere There is no good way to split the monster CL up. This breaks out the GrContext plumbing but doesn't use it. Change-Id: I90856d428d372bcec3f8821e6364667b367927d4 Reviewed-on: https://skia-review.googlesource.com/133382 Commit-Queue: Robert Phillips Reviewed-by: Greg Daniel --- src/gpu/ops/GrCopySurfaceOp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gpu/ops/GrCopySurfaceOp.cpp') diff --git a/src/gpu/ops/GrCopySurfaceOp.cpp b/src/gpu/ops/GrCopySurfaceOp.cpp index 66d9f893f3..da8e910025 100644 --- a/src/gpu/ops/GrCopySurfaceOp.cpp +++ b/src/gpu/ops/GrCopySurfaceOp.cpp @@ -6,7 +6,11 @@ */ #include "GrCopySurfaceOp.h" + +#include "GrContext.h" +#include "GrContextPriv.h" #include "GrGpu.h" +#include "GrMemoryPool.h" // returns true if the read/written rect intersects the src/dst and false if not. static bool clip_src_rect_and_dst_point(const GrSurfaceProxy* dst, @@ -59,7 +63,9 @@ static bool clip_src_rect_and_dst_point(const GrSurfaceProxy* dst, return !clippedSrcRect->isEmpty(); } -std::unique_ptr GrCopySurfaceOp::Make(GrSurfaceProxy* dstProxy, GrSurfaceProxy* srcProxy, +std::unique_ptr GrCopySurfaceOp::Make(GrContext* context, + GrSurfaceProxy* dstProxy, + GrSurfaceProxy* srcProxy, const SkIRect& srcRect, const SkIPoint& dstPoint) { SkASSERT(dstProxy); -- cgit v1.2.3