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

Side by Side Diff: include/core/SkData.h

Issue 132803005: SkOnce: add option to call another cleanup function once at exit. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add static Created 6 years, 11 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
« no previous file with comments | « no previous file | include/core/SkOnce.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | include/core/SkOnce.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698