commit | f2e93fc989129f11881919de99a3b8f12081beae | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 05 19:44:18 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 05 19:44:18 2012 +0000 |
tree | 4b988327cefe02d72339cc39b251615c366e6f11 | |
parent | d966ab9906027215698e8d6a488ef1cfb2346a9e [diff] [blame] |
Resource cache now explicitly takes ref of managed resources https://codereview.appspot.com/6489085/ git-svn-id: http://skia.googlecode.com/svn/trunk@5407 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp index 4561aea..4b262d4 100644 --- a/src/gpu/GrResourceCache.cpp +++ b/src/gpu/GrResourceCache.cpp
@@ -17,6 +17,7 @@ // we assume ownership of the resource, and will unref it when we die GrAssert(resource); + resource->ref(); } GrResourceEntry::~GrResourceEntry() {