From a2c2323005fb22e564426f4ed86adaa6d213aba1 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Tue, 25 Nov 2014 07:41:12 -0800 Subject: Remove GrSurface::isSameAs Review URL: https://codereview.chromium.org/753783003 --- src/gpu/gl/GrGpuGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/gl') diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index bb40839f48..8bf35c1690 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2429,7 +2429,7 @@ bool GrGpuGL::copySurface(GrSurface* dst, SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, srcRect.width(), srcRect.height()); bool selfOverlap = false; - if (dst->surfacePriv().isSameAs(src)) { + if (dst == src) { selfOverlap = SkIRect::IntersectsNoEmptyCheck(dstRect, srcRect); } @@ -2503,7 +2503,7 @@ bool GrGpuGL::canCopySurface(const GrSurface* dst, return true; } if (can_blit_framebuffer(dst, src, this, &wouldNeedTempFBO) && !wouldNeedTempFBO) { - if (dst->surfacePriv().isSameAs(src)) { + if (dst == src) { SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, srcRect.width(), srcRect.height()); if(!SkIRect::IntersectsNoEmptyCheck(dstRect, srcRect)) { -- cgit v1.2.3