Index: src/gpu/gl/GrGpuGL.cpp |
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp |
index 9e1f754a82c03a4eac0ba432efb81c5c7933ef8e..5030c871929e14a6cfbbd73327884da163fa0060 100644 |
--- a/src/gpu/gl/GrGpuGL.cpp |
+++ b/src/gpu/gl/GrGpuGL.cpp |
@@ -2428,7 +2428,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); |
} |
@@ -2502,7 +2502,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)) { |