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

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

Issue 26491003: SK_ONCE for SkData (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: dropped assert Created 7 years, 2 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 | « no previous file | include/core/SkPathRef.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 private: 129 private:
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.
140 static void NewEmptyImpl(SkData**);
141
139 typedef SkRefCnt INHERITED; 142 typedef SkRefCnt INHERITED;
140 }; 143 };
141 144
142 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */ 145 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */
143 typedef SkAutoTUnref<SkData> SkAutoDataUnref; 146 typedef SkAutoTUnref<SkData> SkAutoDataUnref;
144 147
145 #endif 148 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPathRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698