commit | dace19ec17e85872df3fb35212e1b8bce72018b6 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Mon Nov 17 07:34:06 2014 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Mon Nov 17 07:34:06 2014 -0800 |
tree | 3bcea7c36f7b836a4b638007fd890a2057c0f653 | |
parent | c6ad9eefa0f8d0c2ede9884b446c65dde9b04dd1 [diff] [blame] |
Correct accounting for wrapped resources BUG=skia:2889 Review URL: https://codereview.chromium.org/720033004
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h index 3c3786d0..7d20fff 100644 --- a/src/gpu/GrGpuResourceCacheAccess.h +++ b/src/gpu/GrGpuResourceCacheAccess.h
@@ -54,6 +54,8 @@ return NULL; } + bool isWrapped() const { return fResource->isWrapped(); } + /** * Called by the cache to delete the resource under normal circumstances. */