diff options
author | bsalomon <bsalomon@google.com> | 2014-09-30 12:18:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 12:18:44 -0700 |
commit | afbf2d6273cd22c683f20a7e5773843876af3085 (patch) | |
tree | ce03339b06e13e45b5055b7cc5abdeb57cbdd86c /src/gpu/GrDrawTarget.cpp | |
parent | 8de02f4bf3dfb6178132231d03caec9f9a5d0beb (diff) |
Make "priv" classes for GrTexure and GrSurface.
R=robertphillips@google.com, egdaniel@google.com, joshualitt@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/596053002
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index eb8991519d..d8848bc4d5 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -13,6 +13,7 @@ #include "GrDrawTargetCaps.h" #include "GrPath.h" #include "GrRenderTarget.h" +#include "GrSurfacePriv.h" #include "GrTemplates.h" #include "GrTexture.h" #include "GrVertexBuffer.h" @@ -964,7 +965,7 @@ bool GrDrawTarget::onCanCopySurface(GrSurface* dst, SkASSERT(dstPoint.fX + srcRect.width() <= dst->width() && dstPoint.fY + srcRect.height() <= dst->height()); - return !dst->isSameAs(src) && dst->asRenderTarget() && src->asTexture(); + return !dst->surfacePriv().isSameAs(src) && dst->asRenderTarget() && src->asTexture(); } bool GrDrawTarget::onCopySurface(GrSurface* dst, |