From e30739a1e1d90183bc6bf7414e409e89016881f5 Mon Sep 17 00:00:00 2001 From: Timothy Liang Date: Tue, 31 Jul 2018 10:51:17 -0400 Subject: implemented copy surface as draw for metal gpu backend Bug: skia: Change-Id: Ie61bd6ad9f288b8a025d44f887a0954101a7d710 Reviewed-on: https://skia-review.googlesource.com/142687 Commit-Queue: Timothy Liang Reviewed-by: Greg Daniel --- src/gpu/mtl/GrMtlCaps.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gpu/mtl/GrMtlCaps.h') diff --git a/src/gpu/mtl/GrMtlCaps.h b/src/gpu/mtl/GrMtlCaps.h index 5d6c82bea8..11eb322442 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h @@ -51,6 +51,9 @@ public: const SkIRect& srcRect, const SkIPoint& dstPoint, bool areDstSrcSameObj) const; + bool canCopyAsDraw(GrPixelConfig dstConfig, bool dstIsRenderable, + GrPixelConfig srcConfig, bool srcIsTextureable) const; + bool canCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) const override; -- cgit v1.2.3