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

Side by Side Diff: src/core/SkDiscardableMemory.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/SkDeviceProfile.cpp ('k') | src/core/SkDraw.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 2013 Google Inc. 2 * Copyright 2013 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 SkDiscardableMemory_DEFINED 8 #ifndef SkDiscardableMemory_DEFINED
9 #define SkDiscardableMemory_DEFINED 9 #define SkDiscardableMemory_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 13
14 /** 14 /**
15 * Interface for discardable memory. Implementation is provided by the 15 * Interface for discardable memory. Implementation is provided by the
16 * embedder. 16 * embedder.
17 */ 17 */
18 class SK_API SkDiscardableMemory { 18 class SK_API SkDiscardableMemory {
19 public: 19 public:
20 /** 20 /**
21 * Factory method that creates, initializes and locks an SkDiscardableMemor y 21 * Factory method that creates, initializes and locks an SkDiscardableMemor y
22 * object. If either of these steps fails, a NULL pointer will be returned. 22 * object. If either of these steps fails, a nullptr pointer will be return ed.
23 */ 23 */
24 static SkDiscardableMemory* Create(size_t bytes); 24 static SkDiscardableMemory* Create(size_t bytes);
25 25
26 /** 26 /**
27 * Factory class that creates, initializes and locks an SkDiscardableMemory 27 * Factory class that creates, initializes and locks an SkDiscardableMemory
28 * object. If either of these steps fails, a NULL pointer will be returned. 28 * object. If either of these steps fails, a nullptr pointer will be return ed.
29 */ 29 */
30 class Factory : public SkRefCnt { 30 class Factory : public SkRefCnt {
31 public: 31 public:
32 virtual SkDiscardableMemory* create(size_t bytes) = 0; 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
33 private: 33 private:
34 typedef SkRefCnt INHERITED; 34 typedef SkRefCnt INHERITED;
35 }; 35 };
36 36
37 /** Must not be called while locked. 37 /** Must not be called while locked.
38 */ 38 */
(...skipping 17 matching lines...) Expand all
56 virtual void* data() = 0; 56 virtual void* data() = 0;
57 57
58 /** 58 /**
59 * Unlock the memory so that it can be purged by the system. Must be called 59 * Unlock the memory so that it can be purged by the system. Must be called
60 * after every successful lock call. 60 * after every successful lock call.
61 */ 61 */
62 virtual void unlock() = 0; 62 virtual void unlock() = 0;
63 }; 63 };
64 64
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « src/core/SkDeviceProfile.cpp ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698