Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 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 = NULL); |
| 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 = NULL); |
| 42 | |
|
reed1
2014/12/22 21:38:15
Why do these take their parameters in a slightly d
qiankun
2014/12/23 10:54:32
Modify the name and re-order parameters for FindAn
| |
| 43 static bool FindCachedRRect(SkMask* mask, SkScalar sigma, SkBlurStyle style, | |
| 44 SkBlurQuality quality, const SkRRect& rrect); | |
| 45 static void AddCachedRRect(const SkMask& mask, SkScalar sigma, SkBlurStyle s tyle, | |
| 46 SkBlurQuality quality, const SkRRect& rrect); | |
| 47 static bool FindCachedRects(SkMask* mask, SkScalar sigma, SkBlurStyle style, | |
| 48 SkBlurQuality quality, const SkRect rects[], int count); | |
| 49 static void AddCachedRects(const SkMask& mask, SkScalar sigma, SkBlurStyle s tyle, | |
| 50 SkBlurQuality quality, const SkRect rects[], int count); | |
| 42 }; | 51 }; |
| 43 | 52 |
| 44 #endif | 53 #endif |
| OLD | NEW |