commit | a292112154f803feb9f5cc002bbfab559f7cb633 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Aug 28 12:34:17 2012 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Aug 28 12:34:17 2012 +0000 |
tree | ad0e10be899398b34764f8f7c0d63df4172a483d | |
parent | 97af1a64ae6bdddd346d8babfd9f188279dd6644 [diff] [blame] |
Remove SkGpuDevice::fTexture, use new pixel ref class name Review URL: https://codereview.appspot.com/6474068/ git-svn-id: http://skia.googlecode.com/svn/trunk@5307 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrResource.h b/include/gpu/GrResource.h index 0f4b03d..6b85729 100644 --- a/include/gpu/GrResource.h +++ b/include/gpu/GrResource.h
@@ -76,6 +76,8 @@ virtual void onRelease() = 0; virtual void onAbandon() = 0; + bool isInCache() const { return NULL != fCacheEntry; } + private: friend class GrGpu; // GrGpu manages list of resources.