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

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

Issue 306943003: SkLazyPtr, mk. 2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: drop static Created 6 years, 6 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/SkXfermode.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(int/*unused*/); 140 static SkData* NewEmptyImpl();
141 static void DeleteEmpty(SkData*);
141 142
142 typedef SkRefCnt INHERITED; 143 typedef SkRefCnt INHERITED;
143 }; 144 };
144 145
145 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */ 146 /** Typedef of SkAutoTUnref<SkData> for automatically unref-ing a SkData. */
146 typedef SkAutoTUnref<SkData> SkAutoDataUnref; 147 typedef SkAutoTUnref<SkData> SkAutoDataUnref;
147 148
148 #endif 149 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698