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

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: backed blur mask with a bitmap 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
15 class SkMaskCache {
16 public:
17 static bool Find(SkScalar sigma, const SkRRect& rrect, SkMask* result);
18 static void Add(SkScalar sigma, const SkRRect& rrect, const SkMask& mask);
19
20 static bool Find(SkScalar sigma, int32_t count, const SkRect rects[], SkMask * result);
21 static void Add(SkScalar sigma, int32_t count, const SkRect rects[], const S kMask& mask);
22 };
23
24 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698