summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2019-12-13 16:28:54 -0800
committerKevin Han <kevhan@google.com>2020-01-08 14:21:21 -0800
commit8b6968328d3d6776d2e55fcb29f70f80296c1aff (patch)
treed1ae127d475ef727de068f6f69616255a6c1169e /libs/hwui/renderthread/RenderThread.cpp
parent804ce8e61ece941ca9335613c1ecb5c4d4fb9e4c (diff)
Convert NotificationContentInflater to singleton
Convert NotificationContentInflater into a singleton since it has almost no state, making it easier to inject and re-use. Move the only per-row state it has, cached remote views, to a separate class NotifRemoteViewCacheImpl that manages the lifetime of the cached remote views based off the notification's lifecycle. This has the added benefit of being re-usable for content recycling later on. Bug: 145749521 Test: atest SystemUITests Test: atest NotificationContentInflaterTest w/o @Suppress locally Test: smoke test Change-Id: Iedda71d7e5edea9e30580e99eb5b6ec545bb708d
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions