From 15c0fea699b25343fe6f49668a5632866e1a0306 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Fri, 22 Jun 2012 12:41:43 +0000 Subject: 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 --- include/core/SkBitmap.h | 1 - include/core/SkRefCnt.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/core') 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; -- cgit v1.2.3