OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkWeakRefCnt_DEFINED | 8 #ifndef SkWeakRefCnt_DEFINED |
9 #define SkWeakRefCnt_DEFINED | 9 #define SkWeakRefCnt_DEFINED |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 weak_unref(); | 150 weak_unref(); |
151 } | 151 } |
152 | 152 |
153 /* Invariant: fWeakCnt = #weak + (fRefCnt > 0 ? 1 : 0) */ | 153 /* Invariant: fWeakCnt = #weak + (fRefCnt > 0 ? 1 : 0) */ |
154 mutable int32_t fWeakCnt; | 154 mutable int32_t fWeakCnt; |
155 | 155 |
156 typedef SkRefCnt INHERITED; | 156 typedef SkRefCnt INHERITED; |
157 }; | 157 }; |
158 | 158 |
159 #endif | 159 #endif |
OLD | NEW |