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

Side by Side Diff: src/core/SkYUVPlanesCache.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/SkXfermode.cpp ('k') | src/core/SkYUVPlanesCache.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 2015 Google Inc. 2 * Copyright 2015 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 SkYUVPlanesCache_DEFINED 8 #ifndef SkYUVPlanesCache_DEFINED
9 #define SkYUVPlanesCache_DEFINED 9 #define SkYUVPlanesCache_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 */ 28 */
29 struct Info { 29 struct Info {
30 SkISize fSize[3]; 30 SkISize fSize[3];
31 size_t fSizeInMemory[3]; 31 size_t fSizeInMemory[3];
32 size_t fRowBytes[3]; 32 size_t fRowBytes[3];
33 SkYUVColorSpace fColorSpace; 33 SkYUVColorSpace fColorSpace;
34 }; 34 };
35 /** 35 /**
36 * On success, return a ref to the SkCachedData that holds the pixels. 36 * On success, return a ref to the SkCachedData that holds the pixels.
37 * 37 *
38 * On failure, return NULL. 38 * On failure, return nullptr.
39 */ 39 */
40 static SkCachedData* FindAndRef(uint32_t genID, Info* info, 40 static SkCachedData* FindAndRef(uint32_t genID, Info* info,
41 SkResourceCache* localCache = NULL); 41 SkResourceCache* localCache = nullptr);
42 42
43 /** 43 /**
44 * Add a pixelRef ID and its YUV planes data to the cache. 44 * Add a pixelRef ID and its YUV planes data to the cache.
45 */ 45 */
46 static void Add(uint32_t genID, SkCachedData* data, Info* info, 46 static void Add(uint32_t genID, SkCachedData* data, Info* info,
47 SkResourceCache* localCache = NULL); 47 SkResourceCache* localCache = nullptr);
48 }; 48 };
49 49
50 #endif 50 #endif
OLDNEW
« no previous file with comments | « src/core/SkXfermode.cpp ('k') | src/core/SkYUVPlanesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698