зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
c287a89fdd
Коммит
b095140596
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче