// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // BlobCache: Stores compiled and linked programs in memory so they don't // always have to be re-compiled. Can be used in conjunction with the platform // layer to warm up the cache from disk. #ifndef LIBANGLE_BLOB_CACHE_H_ #define LIBANGLE_BLOB_CACHE_H_ #include <array> #include <cstring> #include "common/SimpleMutex.h" #include "libANGLE/Error.h" #include "libANGLE/SizedMRUCache.h" #include "libANGLE/angletypes.h" namespace gl { class Context; } // namespace gl namespace egl { // Used by MemoryProgramCache and MemoryShaderCache, this result indicates whether program/shader // cache load from blob was successful. enum class CacheGetResult { … }; class BlobCache final : angle::NonCopyable { … }; } // namespace egl #endif // LIBANGLE_MEMORY_PROGRAM_CACHE_H_