aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuResource.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-02-26 10:37:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-26 10:37:26 -0800
commitb2c0133caf0f03462385c19634281c351355c979 (patch)
treef5a3bbbe93fbfa0d7f72dc93d9fe0865220139c8 /src/gpu/GrGpuResource.cpp
parent992ad363d7ca879cdb86f802b379f06800a44125 (diff)
When a surface is backed by an external render target force a copy on image snap
Diffstat (limited to 'src/gpu/GrGpuResource.cpp')
-rw-r--r--src/gpu/GrGpuResource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
index 98cea1c9a8..7c053b31d7 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -169,7 +169,7 @@ void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) {
SkASSERT(!fScratchKey.isValid());
SkASSERT(scratchKey.isValid());
// Wrapped resources can never have a scratch key.
- if (this->cacheAccess().isExternal()) {
+ if (this->resourcePriv().isExternal()) {
return;
}
fScratchKey = scratchKey;