commit | 386319eebb806f62a60b16826750f364edc94ce5 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jun 27 14:59:18 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jun 27 14:59:18 2012 +0000 |
tree | 2332d2b2c124b76a59720197a6f1b5617e34c757 | |
parent | 51f3866995bfb5af75a9a06465ba30909b6e1c4b [diff] [blame] |
Fixed Resource counting bug in AutoScratchTexture detach mechanism http://codereview.appspot.com/6356043/ git-svn-id: http://skia.googlecode.com/svn/trunk@4361 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 525c67e..24f2b8f 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h
@@ -316,13 +316,14 @@ size_t fEntryBytes; int fClientDetachedCount; size_t fClientDetachedBytes; - + // prevents recursive purging bool fPurging; GrResourceEntry* create(const GrResourceKey& key, GrResource* resource, - bool lock); + bool lock, + bool clientReattach); };