summaryrefslogtreecommitdiff
path: root/libs/hwui/pipeline/skia/ShaderCache.cpp
AgeCommit message (Collapse)Author
2021-06-07Increase the persistent storage size for SkSL ShadersLeon Scroggins III
Fixes: 190348616 Test: builds We're now using more complex shaders in more places. This allows us to store more of them. Change-Id: I1be3da0458c4b64f7082a2e1bc0d08b0824bbeba
2021-05-22Use TraceUtils.h from gui shared library.rnlee
Test: It makes Bug: 183120308 Change-Id: I331262dd2da59817031f0c708f4c102041dcb5e0
2020-10-07Migrate some last instances of GrContext to GrDirectContextAdlai Holler
This is a rename with no functional changes. Change-Id: I4b0b7ee1926b688029e257b35c469113c0404a5b
2019-04-12Support render-ahead in vulkanJohn Reck
Bug: 127822449 Test: verified render_ahead working with skiavk Change-Id: Iae1b227a763f6def035057f38cca4b0ab65c7e82
2019-01-24Increase ShaderCache max size to accomodate Vulkan pipeline cacheStan Iliev
Bug: 123311517 Test: Ran on device Change-Id: Id7127b391e44fb9661ad4eb847180dc3740abe0f
2019-01-14Store VkPipelineCache to ShaderCacheStan Iliev
Store vulkan pipeline cache in ShaderCache. Avoid writing to disk unless pipeline cache size has changed or there was a new shader compilation. Test: Ran app startup test. Ran Calc app. Bug: 122659224 Change-Id: Ie54ea8f0ee9c87387c310b369b2350310e20fa13
2018-12-14New WebViewFunctor APIJohn Reck
Should function alongside existing functor API. Bug: 120997728 Test: hwuiunit passes Change-Id: I8f6143d0be1111431b55016f34de319f6b8c8910
2018-09-04Add cache validation to ensure the validityYichi Chen
Create cache identity from GL_VERSION and store in ShaderCache. In the next time ShaderCache is restored from disk, compare the cache identity to ensure its validity. If GL_VERSION changes in between, flush out entire FileBlobCache and start from an empty one. Bug: b/71800782 Test: Wrote a new unit test to save and restore ShaderCache Test: hwui_unit_tests Change-Id: Ie573dc4f18733eee090725be30445d879765231b
2018-03-30Fix memory leak in ShaderCacheStan Iliev
Fix memory leak in a limited memory situation within ShaderCache::load(). Bug: 76213660 Test: Passed ShaderCacheTest unit test, ran a build on device. Change-Id: Ibb6ea8fe167eb22bcbbaffc4cfffac12eda98c42
2018-01-24Don't use shader disk cache on emulatorLingfeng Yang
bug: 71900691 Emulator user might switch renderers, migrate a snapshot to a different machine with a different shader binary format, etc. Plus, program binaries don't seem to work so well on some desktop GPUs. Change-Id: I0c6239acbd556097494aa903d6603c963d3141cb
2018-01-09Remove error log messages when skia shader cache is disabledStan Iliev
Ideally processes with a render thread, would turn on shader caching, but system_server is an exception. Test: checked logcat for ShaderCache not initialized messages Bug: 71718344 Change-Id: I5d4df6ae912a6fec3f019c9c831a1177937ea53b
2017-11-08Implement SkSL cacheStan Iliev
Implement SkSL cache by reusing code and logic from egl_cache_t. Test: Improves startup times for gmail by 15ms and 10ms for calc app. Bug: 66740665 Change-Id: I9ba479c649ba97a2c29a48d40579ba001264c957