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

Side by Side Diff: src/core/SkImageGeneratorPriv.h

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/core/SkImageGenerator.cpp ('k') | src/core/SkImageInfo.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 2014 Google Inc. 2 * Copyright 2014 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 SkImageGeneratorPriv_DEFINED 8 #ifndef SkImageGeneratorPriv_DEFINED
9 #define SkImageGeneratorPriv_DEFINED 9 #define SkImageGeneratorPriv_DEFINED
10 10
11 #include "SkImageGenerator.h" 11 #include "SkImageGenerator.h"
12 #include "SkDiscardableMemory.h" 12 #include "SkDiscardableMemory.h"
13 13
14 /** 14 /**
15 * Takes ownership of SkImageGenerator. If this method fails for 15 * Takes ownership of SkImageGenerator. If this method fails for
16 * whatever reason, it will return false and immediatetely delete 16 * whatever reason, it will return false and immediatetely delete
17 * the generator. If it succeeds, it will modify destination 17 * the generator. If it succeeds, it will modify destination
18 * bitmap. 18 * bitmap.
19 * 19 *
20 * If generator is NULL, will safely return false. 20 * If generator is nullptr, will safely return false.
21 * 21 *
22 * If this fails or when the SkDiscardablePixelRef that is 22 * If this fails or when the SkDiscardablePixelRef that is
23 * installed into destination is destroyed, it will call 23 * installed into destination is destroyed, it will call
24 * `delete` on the generator. Therefore, generator should be 24 * `delete` on the generator. Therefore, generator should be
25 * allocated with `new`. 25 * allocated with `new`.
26 * 26 *
27 * @param destination Upon success, this bitmap will be 27 * @param destination Upon success, this bitmap will be
28 * configured and have a pixelref installed. 28 * configured and have a pixelref installed.
29 * 29 *
30 * @param factory If not NULL, this object will be used as a 30 * @param factory If not nullptr, this object will be used as a
31 * source of discardable memory when decoding. If NULL, then 31 * source of discardable memory when decoding. If nullptr, then
32 * SkDiscardableMemory::Create() will be called. 32 * SkDiscardableMemory::Create() will be called.
33 * 33 *
34 * @return true iff successful. 34 * @return true iff successful.
35 */ 35 */
36 bool SkInstallDiscardablePixelRef(SkImageGenerator*, const SkIRect* subset, SkBi tmap* destination, 36 bool SkInstallDiscardablePixelRef(SkImageGenerator*, const SkIRect* subset, SkBi tmap* destination,
37 SkDiscardableMemory::Factory* factory); 37 SkDiscardableMemory::Factory* factory);
38 38
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « src/core/SkImageGenerator.cpp ('k') | src/core/SkImageInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698