summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CacheManager.cpp
AgeCommit message (Collapse)Author
2017-12-11Update GrContext creation calls to use sk_spGreg Daniel
Test: manual testing Change-Id: I68d8706ffa7bc7c6622ea0b8c45d7297a131f6bf
2017-11-29Enable Skia shader cacheStan Iliev
Enable Skia shader cache after fix for image and text drawing issues were landed in Skia. Test: Ran Hangouts, Settings, CNN, Drive, GMail, Calendar, Clock Test: Maps, Docs, Play store, YouTube apps. Change-Id: I94cd07e95b704bc164894aa8b8c63f49ded198f5
2017-11-14Disable skia shader cacheStan Iliev
Disable skia shader cache, which is causing image rendering issues. Test: Ran CNN app and images are OK. Bug: 69264347 Change-Id: Ie81f3398074f28ac1670333f1fd3c95267b2beb3
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
2017-11-03Format the world (or just HWUI)John Reck
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-09-08Enable multi-threading of cpu intensive tasks when using Skia pipelinesDerek Sollenberger
Test: CtsUiRenderingTestCases Change-Id: Ifa36371f55d3f2d78faf0a23fb283c904ff1af5f
2017-08-09Disable VD shared atlas surfaceStan Iliev
Using a shared atlas surface is causing a variance in AA pixels when drawing the same content. This is causing some CTS tests in CtsPreference2TestCases to fail because of up to RGB(1,1,1) difference in AA pixels in screenshots of a recreated activity. Another effect is reducing memory usage ("GL mtrack" down by 10MB for clock app). Test: Ran CtsPreference2TestCases tests. Bug: 64487466 Change-Id: I1e5a547285c885136b6885d129d566d5b0c2ed76
2017-07-18Cache VectorDrawables in an atlasStan Iliev
Optimize VectorDrawables for Skia pipeline: draw small VectorDrawables in a GPU atlas instead of seprate offscreen buffers. This implementation is using CacheManger and allows for the atlas to be released if there is a memory pressure. Test: A new unit test for VectorDrawableAtlas is passing. Systrace shows 0.5ms faster DrawFrame for fling in Settings app main screen. Change-Id: Ide3884eefae777e1547f1dfdb67b807185839fb4
2017-06-06Implement CacheManager for the Skia pipelines.Derek Sollenberger
The core of the implementation is complete and provides heuristic cache sizing based on the size of the surface being used. This CL will also be used to add the following features in the future... 1) Support Vulkan pipeline reporting on the size of the surface. 2) Complete the VectorDrawableAtlas stub code 3) Automatic purging of stale resources for low memory devices. Test: hwui_unit_tests (new test added) and CtsUiRendering Bug: 62260637 Change-Id: Ib85159cca28b646fe249f2190b07f1b7e0f50d8f