OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 ReleaseProc fReleaseProc; | 130 ReleaseProc fReleaseProc; |
131 void* fReleaseProcContext; | 131 void* fReleaseProcContext; |
132 | 132 |
133 const void* fPtr; | 133 const void* fPtr; |
134 size_t fSize; | 134 size_t fSize; |
135 | 135 |
136 SkData(const void* ptr, size_t size, ReleaseProc, void* context); | 136 SkData(const void* ptr, size_t size, ReleaseProc, void* context); |
137 virtual ~SkData(); | 137 virtual ~SkData(); |
138 | 138 |
139 // Called the first time someone calls NewEmpty to initialize the singleton. | 139 // Called the first time someone calls NewEmpty to initialize the singleton. |
140 static void NewEmptyImpl(SkData**); | 140 static void NewEmptyImpl(int/*unused*/); |
141 | 141 |
142 typedef SkRefCnt INHERITED; | 142 typedef SkRefCnt INHERITED; |
143 }; | 143 }; |
144 | 144 |
145 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */ | 145 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */ |
146 typedef SkAutoTUnref<SkData> SkAutoDataUnref; | 146 typedef SkAutoTUnref<SkData> SkAutoDataUnref; |
147 | 147 |
148 #endif | 148 #endif |
OLD | NEW |