diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-22 12:41:43 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-22 12:41:43 +0000 |
commit | 15c0fea699b25343fe6f49668a5632866e1a0306 (patch) | |
tree | 0616bf4168b4d98e02ae7cabf95623ef7ccb4fa5 /include/core | |
parent | 5e2412983183f9c4075a795278f3ca4ffee0ed79 (diff) |
AutoScratchTexture can now release its texture and it will return to the texture cache when freed
http://codereview.appspot.com/6262043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4301 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkBitmap.h | 1 | ||||
-rw-r--r-- | include/core/SkRefCnt.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 8515b4601e..5673fb289f 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -18,7 +18,6 @@ struct SkIRect; struct SkRect; -class SkColorTable; class SkPaint; class SkPixelRef; class SkRegion; diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index a00bc3e3f1..28a475bfd6 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -80,7 +80,10 @@ private: #endif SkDELETE(this); } + friend class SkWeakRefCnt; + friend class GrTexture; // to allow GrTexture's internal_dispose to + // call SkRefCnt's & directly set fRefCnt (to 1) mutable int32_t fRefCnt; |