aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuResource.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-06-18 09:12:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 09:12:17 -0700
commit6dc6f5f4a153d33ed91565cb3cd397a310a937d0 (patch)
treea432ddf0638895a1d1d645876575aa64a9d9d6c7 /src/gpu/GrGpuResource.cpp
parent4c58e085b27c4cd9813ed7cad2388194d1d1f089 (diff)
Add support for creating texture backed images where Skia will delete the texture.
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 c2d93620d5..49212df416 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -145,7 +145,7 @@ void GrGpuResource::setScratchKey(const GrScratchKey& scratchKey) {
SkASSERT(!fScratchKey.isValid());
SkASSERT(scratchKey.isValid());
// Wrapped resources can never have a scratch key.
- if (this->isWrapped()) {
+ if (this->cacheAccess().isExternal()) {
return;
}
fScratchKey = scratchKey;