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

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

Issue 1957503002: https://groups.google.com/forum/#!topic/skia-discuss/2F2she2nQMg (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | src/core/SkData.cpp » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 SkData_DEFINED 8 #ifndef SkData_DEFINED
9 #define SkData_DEFINED 9 #define SkData_DEFINED
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void* operator new(size_t size) { return sk_malloc_throw(size); } 209 void* operator new(size_t size) { return sk_malloc_throw(size); }
210 void* operator new(size_t, void* p) { return p; } 210 void* operator new(size_t, void* p) { return p; }
211 void operator delete(void* p) { sk_free(p); } 211 void operator delete(void* p) { sk_free(p); }
212 212
213 // Called the first time someone calls NewEmpty to initialize the singleton. 213 // Called the first time someone calls NewEmpty to initialize the singleton.
214 friend SkData* sk_new_empty_data(); 214 friend SkData* sk_new_empty_data();
215 215
216 // shared internal factory 216 // shared internal factory
217 static sk_sp<SkData> PrivateNewWithCopy(const void* srcOrNull, size_t length ); 217 static sk_sp<SkData> PrivateNewWithCopy(const void* srcOrNull, size_t length );
218 218
219 static void DummyReleaseProc(const void*, void*) {} 219 static void DummyReleaseProc(const void*, void*); // {}
220 220
221 typedef SkRefCnt INHERITED; 221 typedef SkRefCnt INHERITED;
222 }; 222 };
223 223
224 #ifdef SK_SUPPORT_LEGACY_DATA_FACTORIES 224 #ifdef SK_SUPPORT_LEGACY_DATA_FACTORIES
225 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */ 225 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */
226 typedef SkAutoTUnref<SkData> SkAutoDataUnref; 226 typedef SkAutoTUnref<SkData> SkAutoDataUnref;
227 #endif 227 #endif
228 228
229 #endif 229 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698