// // Copyright 2017 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. // // SizedMRUCache.h: A hashing map that stores blobs of sized, untyped data. #ifndef LIBANGLE_SIZED_MRU_CACHE_H_ #define LIBANGLE_SIZED_MRU_CACHE_H_ #include <anglebase/containers/mru_cache.h> namespace angle { template <typename Key, typename Value> class SizedMRUCache final : angle::NonCopyable { … }; // Helper function used in a few places. template <typename T> void TrimCache(size_t maxStates, size_t gcLimit, const char *name, T *cache) { … } } // namespace angle #endif // LIBANGLE_SIZED_MRU_CACHE_H_