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

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

Issue 729463002: Cache blur mask for rects which can not break into nine-patch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix edge artifacts Created 6 years 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 | « no previous file | src/core/SkMaskCache.cpp » ('j') | src/core/SkMaskFilter.cpp » ('J')
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
(...skipping 21 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | src/core/SkMaskCache.cpp » ('j') | src/core/SkMaskFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698