summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl_cache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* EGL: Use cache sizes defined in the BoardConfigJamie Gennis2011-11-211-2/+10
| | | | | | | | | | | This change introduces two new BoardConfig variables to control the size limits of the EGL blob cache. MAX_EGL_CACHE_ENTRY_SIZE is the size limit for values inserted into the cache, and MAX_EGL_CACHE_SIZE is the size limit for all entries in the entire cache (including both keys and values). If either of these BoardConfig variables are not defined then a default size limit is used instead. Change-Id: I6703d93f966b6389c6499f23d841e42339f9c9d7
* EGL: fix blob cache extension detectionJamie Gennis2011-11-171-1/+1
| | | | | Bug: 5474671 Change-Id: I6359063ccf23f076fc84c80b8a2f6731a65eef18
* EGL: add the ANDROID suffix to the blob cache extJamie Gennis2011-11-111-19/+21
| | | | | | | This change adds the ANDROID suffix to the all the types and functions defined by the EGL_ANDROID_blob_cache extension. Change-Id: I087875b96d9a7053efb9c8d5614f9f765eed799d
* EGL: add deferred saving of the cacheJamie Gennis2011-11-081-0/+27
| | | | | | | | This change causes any insertions into the EGL cache to trigger an attempt to save the cache contents to disk. The save operation is deferred to allow multiple cache insertions to be batched up. Change-Id: I6cfec9c0dbbef94d3f8880860e2a365dccc296c7
* EGL: implement loading and saving the cacheJamie Gennis2011-11-081-2/+162
| | | | | | | This change adds support for saving and loading the contents of the EGL cache. It also adds some simple tests for the EGL cache. Change-Id: I18e5e789e0897a0783d29d1c1e64d26de2dd44c4
* EGL: use an in-memory the blob cacheJamie Gennis2011-11-071-16/+76
| | | | | | | | This change makes the makes the stub EGL_ANDROID_blob_cache callbacks actually use a BlobCache object. Bug: 5474671 Change-Id: I5cbaae2dea3aad2fe306c9f57029c3f215a0863a
* EGL: Add stubs for EGL_ANDROID_blob_cacheJamie Gennis2011-11-041-0/+95
This change adds a stub cache implementation that gets passed to the underlying EGL implementation at initialization time. Change-Id: I14437c5b6f91b7a34a19bb02ad802e6e54f88d2a