Change GrSafeUnref / GrSafeRef from static inlines to #defines. Chrome buid is choking on defined but not use warnings.

Review URL: http://codereview.appspot.com/4929041/



git-svn-id: http://skia.googlecode.com/svn/trunk@2142 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-08-19 15:37:34 +00:00
Родитель c287a89fdd
Коммит b095140596
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -18,8 +18,8 @@ typedef SkRefCnt GrRefCnt;
typedef SkAutoRef GrAutoRef;
typedef SkAutoUnref GrAutoUnref;
static void GrSafeRef(const SkRefCnt* obj) { SkSafeRef(obj); }
static void GrSafeUnref(const SkRefCnt* obj) { SkSafeUnref(obj); }
#define GrSafeRef SkSafeRef
#define GrSafeUnref SkSafeUnref
#define GrSafeAssign(a, b) SkRefCnt_SafeAssign(a, b)
template<typename T>

Просмотреть файл

@ -12,6 +12,7 @@
#define GrTDArray_DEFINED
#include "GrTypes.h"
#include "GrRefCnt.h"
static int GrInitialArrayAllocationCount() {
return 4;