#include "libANGLE/BlobCache.h"
#include "common/utilities.h"
#include "libANGLE/Context.h"
#include "libANGLE/Display.h"
#include "libANGLE/histogram_macros.h"
#include "platform/PlatformMethods.h"
namespace egl
{
BlobCache::BlobCache(size_t maxCacheSizeBytes)
: … { … }
BlobCache::~BlobCache() { … }
void BlobCache::put(const BlobCache::Key &key, angle::MemoryBuffer &&value)
{ … }
bool BlobCache::compressAndPut(const BlobCache::Key &key,
angle::MemoryBuffer &&uncompressedValue,
size_t *compressedSize)
{ … }
void BlobCache::putApplication(const BlobCache::Key &key, const angle::MemoryBuffer &value)
{ … }
void BlobCache::populate(const BlobCache::Key &key, angle::MemoryBuffer &&value, CacheSource source)
{ … }
bool BlobCache::get(angle::ScratchBuffer *scratchBuffer,
const BlobCache::Key &key,
BlobCache::Value *valueOut)
{ … }
bool BlobCache::getAt(size_t index, const BlobCache::Key **keyOut, BlobCache::Value *valueOut)
{ … }
BlobCache::GetAndDecompressResult BlobCache::getAndDecompress(
angle::ScratchBuffer *scratchBuffer,
const BlobCache::Key &key,
size_t maxUncompressedDataSize,
angle::MemoryBuffer *uncompressedValueOut)
{ … }
void BlobCache::remove(const BlobCache::Key &key)
{ … }
void BlobCache::setBlobCacheFuncs(EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get)
{ … }
bool BlobCache::areBlobCacheFuncsSet() const
{ … }
}