Hash :
9216a6e2
Author :
Date :
2017-05-24T15:53:20
Introduce MRUCache. This library comes from Chromium's base, and is useful for many use cases in ANGLE. It can replace the custom MRU code we use in the RenderStateCache. It will also be useful for implementing a program binary cache. BUG=angleproject:2044 Change-Id: Iba166fe380d7ed4e3123428b0227b9d299f756d1 Reviewed-on: https://chromium-review.googlesource.com/516384 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Name: Chromium: base/containers/MRUCache
Short Name: base::MRUCache
Version:
URL: https://chromium.googlesource.com/chromium/src/base/+/master/containers/mru_cache.h
SOURCE CODE: Copy the Chromium folder manually into this folder and run git cl format.
Date: 24/05/2017
Revision: d20ef132b529ecce1032005476f936e05cf708c0 (Chromium)
Security Critical: no
License: Chromium
License File: LICENSE in Chromium/src
Description:
base::MRUCache is a few collections of most-recently-used caching structures.
To update the checkout, simply overwrite the folder with Chromium's latest, and apply
the appropriate namespace.
Modifications:
- base/logging.h defines CHECK to be ASSERT to be compatible with ANGLE.
- base/numerics/*.h uses namespace angle::base instead of base:: to avoid ODR
violations when ANGLE code is mixed with Chromium code.