| OLD | NEW |
| (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 |
| OLD | NEW |