diff options
author | Robert Phillips <robertphillips@google.com> | 2017-07-24 15:26:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-24 21:12:05 +0000 |
commit | 7881409baaadd3352d77529a86cdf4d535c1744e (patch) | |
tree | 378de9fb41baf995472284984c52dee4faee9b42 /src/gpu/GrTextureAdjuster.cpp | |
parent | 8a90f50e8e098a5d604896c34de9c68f2f1b1ceb (diff) |
Fifth small fragment from "Reduce dependence on GrSurface's origin field"
TBR=bsalomon@google.com
Change-Id: Id59fa3d2cd657e84f1b4db32847bc07e850271f4
Reviewed-on: https://skia-review.googlesource.com/26362
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureAdjuster.cpp')
-rw-r--r-- | src/gpu/GrTextureAdjuster.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrTextureAdjuster.cpp b/src/gpu/GrTextureAdjuster.cpp index be29857e3b..11cb5b3c90 100644 --- a/src/gpu/GrTextureAdjuster.cpp +++ b/src/gpu/GrTextureAdjuster.cpp @@ -58,6 +58,7 @@ sk_sp<GrTextureProxy> GrTextureAdjuster::refTextureProxyCopy(const CopyParams& c sk_sp<GrTextureProxy> copy = CopyOnGpu(fContext, std::move(proxy), contentArea, copyParams); if (copy) { if (key.isValid()) { + SkASSERT(copy->origin() == this->originalProxy()->origin()); fContext->resourceProvider()->assignUniqueKeyToProxy(key, copy.get()); this->didCacheCopy(key); } |