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

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

Issue 471473002: Optimize CSS box-shadow performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add SkMaskCache Created 6 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkMaskCache_DEFINED
9 #define SkMaskCache_DEFINED
10
11 #include "SkMask.h"
12 #include "SkRect.h"
13 #include "SkRRect.h"
14 #include "SkScaledImageCache.h"
15
16 class SkMaskCache {
17 public:
18 typedef SkScaledImageCache::ID ID;
19
20 static void Unlock(ID* id) {
21 SkScaledImageCache::Unlock(id);
22 }
23
24 /* Input: blur_sigma+rrect */
25 static ID* FindAndLock(SkScalar sigma, const SkRRect rrect, SkMask* result);
26 static ID* AddAndLock(SkScalar sigma, const SkRRect rrect, const SkMask& mas k);
27
28 /* Input: blur_sigma+rects_count+rects */
29 static ID* FindAndLock(SkScalar sigma, unsigned count, const SkRect rects[],
30 SkMask* result);
31 static ID* AddAndLock(SkScalar sigma, unsigned count, const SkRect rects[],
32 const SkMask& mask);
33 };
34
35 #endif
OLDNEW
« no previous file with comments | « include/core/SkMaskFilter.h ('k') | src/core/SkMaskCache.cpp » ('j') | src/core/SkMaskCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698