summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2021-03-08 17:19:01 -0500
committer Leon Scroggins III <scroggo@google.com> 2021-03-12 12:56:13 -0500
commitb9216dc356d70bdce2cca2b2260d0a4a92405bf3 (patch)
tree5f97f8609ab6ec186ec0a6dbebf2286acaa00b2f /libs/gui/BLASTBufferQueue.cpp
parent8503741e01bc6464974eec29690766860ee4ff69 (diff)
Implement SkiaGLRenderEngine::primeCache
Bug: 178661709 Test: perfetto/systrace SkiaGLRenderEngine is unable to write to disk, so it cannot have a persistent cache for shaders. Instead, warm up the cache by calling drawLayers in the ways we expect to see it called during actual use. Currently, this just uses parameters seen when opening the dialer, which required compiling several shaders. Future CLs will expand this to cover other cases. Remove the const modifier from primeCache. Conceptually, it is not const, since we want to change some state (what's in the cache). More practically, it is now calling drawLayers, which is not const. Change-Id: I4bad4ff6cf79d4cd81eef1a5bee6530b3bdc0e84
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions