#include "libANGLE/MemoryShaderCache.h"
#include <GLSLANG/ShaderVars.h>
#include <anglebase/sha1.h>
#include "common/BinaryStream.h"
#include "common/utilities.h"
#include "libANGLE/Compiler.h"
#include "libANGLE/Context.h"
#include "libANGLE/Debug.h"
#include "libANGLE/Uniform.h"
#include "libANGLE/histogram_macros.h"
#include "libANGLE/renderer/ShaderImpl.h"
#include "platform/PlatformMethods.h"
namespace gl
{
namespace
{
static constexpr size_t kMaxUncompressedShaderSize = …;
}
MemoryShaderCache::MemoryShaderCache(egl::BlobCache &blobCache) : … { … }
MemoryShaderCache::~MemoryShaderCache() { … }
egl::CacheGetResult MemoryShaderCache::getShader(const Context *context,
Shader *shader,
const egl::BlobCache::Key &shaderHash,
angle::JobResultExpectancy resultExpectancy)
{ … }
angle::Result MemoryShaderCache::putShader(const Context *context,
const egl::BlobCache::Key &shaderHash,
const Shader *shader)
{ … }
void MemoryShaderCache::clear()
{ … }
size_t MemoryShaderCache::maxSize() const
{ … }
}