#include "src/core/SkCachedData.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/chromium/SkDiscardableMemory.h"
SkCachedData::SkCachedData(void* data, size_t size)
: … { … }
SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm)
: … { … }
SkCachedData::~SkCachedData() { … }
class SkCachedData::AutoMutexWritable { … };
void SkCachedData::internalRef(bool fromCache) const { … }
void SkCachedData::internalUnref(bool fromCache) const { … }
void SkCachedData::inMutexRef(bool fromCache) { … }
bool SkCachedData::inMutexUnref(bool fromCache) { … }
void SkCachedData::inMutexLock() { … }
void SkCachedData::inMutexUnlock() { … }
#ifdef SK_DEBUG
void SkCachedData::validate() const { … }
#endif