#include "src/core/SkMaskCache.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRect.h"
#include "include/core/SkSize.h"
#include "include/private/base/SkAssert.h"
#include "src/base/SkTLazy.h"
#include "src/core/SkCachedData.h"
#include "src/core/SkMask.h"
#include "src/core/SkResourceCache.h"
#include <cstddef>
#include <cstdint>
class SkDiscardableMemory;
enum SkBlurStyle : int;
#define CHECK_LOCAL(localCache, localName, globalName, ...) …
struct MaskValue { … };
namespace {
static unsigned gRRectBlurKeyNamespaceLabel;
struct RRectBlurKey : public SkResourceCache::Key { … };
struct RRectBlurRec : public SkResourceCache::Rec { … };
}
SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style,
const SkRRect& rrect, SkTLazy<SkMask>* mask,
SkResourceCache* localCache) { … }
void SkMaskCache::Add(SkScalar sigma, SkBlurStyle style,
const SkRRect& rrect, const SkMask& mask, SkCachedData* data,
SkResourceCache* localCache) { … }
namespace {
static unsigned gRectsBlurKeyNamespaceLabel;
struct RectsBlurKey : public SkResourceCache::Key { … };
struct RectsBlurRec : public SkResourceCache::Rec { … };
}
SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style,
const SkRect rects[], int count, SkTLazy<SkMask>* mask,
SkResourceCache* localCache) { … }
void SkMaskCache::Add(SkScalar sigma, SkBlurStyle style,
const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
SkResourceCache* localCache) { … }