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

Side by Side Diff: src/ports/SkImageGeneratorCG.h

Issue 2212493002: Convert SkAutoTUnref<SkData> to sk_sp<SkData>. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/ports/SkFontHost_win.cpp ('k') | src/ports/SkImageGeneratorWIC.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 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 #include "SkTypes.h" 8 #include "SkTypes.h"
9 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) 9 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
10 10
(...skipping 17 matching lines...) Expand all
28 int* ctableCount) override; 28 int* ctableCount) override;
29 29
30 private: 30 private:
31 /* 31 /*
32 * Takes ownership of the imageSrc 32 * Takes ownership of the imageSrc
33 * Refs the data 33 * Refs the data
34 */ 34 */
35 SkImageGeneratorCG(const SkImageInfo& info, const void* imageSrc, SkData* da ta); 35 SkImageGeneratorCG(const SkImageInfo& info, const void* imageSrc, SkData* da ta);
36 36
37 SkAutoTCallVProc<const void, CFRelease> fImageSrc; 37 SkAutoTCallVProc<const void, CFRelease> fImageSrc;
38 SkAutoTUnref<SkData> fData; 38 sk_sp<SkData> fData;
39 39
40 typedef SkImageGenerator INHERITED; 40 typedef SkImageGenerator INHERITED;
41 }; 41 };
42 42
43 #endif //defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) 43 #endif //defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_win.cpp ('k') | src/ports/SkImageGeneratorWIC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698