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

Side by Side Diff: src/core/SkMaskCache.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/SkMallocPixelRef.cpp ('k') | src/core/SkMaskCache.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 SkMaskCache_DEFINED 8 #ifndef SkMaskCache_DEFINED
9 #define SkMaskCache_DEFINED 9 #define SkMaskCache_DEFINED
10 10
11 #include "SkBlurTypes.h" 11 #include "SkBlurTypes.h"
12 #include "SkCachedData.h" 12 #include "SkCachedData.h"
13 #include "SkMask.h" 13 #include "SkMask.h"
14 #include "SkRect.h" 14 #include "SkRect.h"
15 #include "SkResourceCache.h" 15 #include "SkResourceCache.h"
16 #include "SkRRect.h" 16 #include "SkRRect.h"
17 17
18 class SkMaskCache { 18 class SkMaskCache {
19 public: 19 public:
20 /** 20 /**
21 * On success, return a ref to the SkCachedData that holds the pixels, and h ave mask 21 * On success, return a ref to the SkCachedData that holds the pixels, and h ave mask
22 * already point to that memory. 22 * already point to that memory.
23 * 23 *
24 * On failure, return NULL. 24 * On failure, return nullptr.
25 */ 25 */
26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQua lity quality, 26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQua lity quality,
27 const SkRRect& rrect, SkMask* mask, 27 const SkRRect& rrect, SkMask* mask,
28 SkResourceCache* localCache = NULL); 28 SkResourceCache* localCache = nullptr);
29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQua lity quality, 29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQua lity quality,
30 const SkRect rects[], int count, SkMask* mas k, 30 const SkRect rects[], int count, SkMask* mas k,
31 SkResourceCache* localCache = NULL); 31 SkResourceCache* localCache = nullptr);
32 32
33 /** 33 /**
34 * Add a mask and its pixel-data to the cache. 34 * Add a mask and its pixel-data to the cache.
35 */ 35 */
36 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, 36 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data , 37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data ,
38 SkResourceCache* localCache = NULL); 38 SkResourceCache* localCache = nullptr);
39 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, 39 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
40 const SkRect rects[], int count, const SkMask& mask, SkCache dData* data, 40 const SkRect rects[], int count, const SkMask& mask, SkCache dData* data,
41 SkResourceCache* localCache = NULL); 41 SkResourceCache* localCache = nullptr);
42 }; 42 };
43 43
44 #endif 44 #endif
OLDNEW
« no previous file with comments | « src/core/SkMallocPixelRef.cpp ('k') | src/core/SkMaskCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698