Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: include/gpu/GrRefCnt.h

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrPathRendererChain.h ('k') | include/gpu/GrResource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2010 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10
11 #ifndef GrRefCnt_DEFINED
12 #define GrRefCnt_DEFINED
13
14 #include "GrTypes.h"
15 #include "SkRefCnt.h"
16
17 typedef SkRefCnt GrRefCnt;
18 typedef SkAutoRef GrAutoRef;
19 typedef SkAutoUnref GrAutoUnref;
20
21 #define GrSafeRef SkSafeRef
22 #define GrSafeUnref SkSafeUnref
23 #define GrSafeAssign(a, b) SkRefCnt_SafeAssign(a, b)
24
25 template<typename T>
26 static inline void GrSafeSetNull(T*& obj) {
27 if (NULL != obj) {
28 obj->unref();
29 obj = NULL;
30 }
31 }
32
33 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrPathRendererChain.h ('k') | include/gpu/GrResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698