DescriptionAdd delegate and factory function for ChildMemoryCoordinator
On Android we need to take immediate action when the OS sends
critical memory pressure notifications [1]. This CL adds
ChildMemoryCoordinatorDelegate and a factory function for
ChildMemoryCoordinator to satisfy the requirement without adding
"#if defined(OS_ANDROID)" in various place. In renderer,
RenderThreadImpl becomes a delegate of ChildMemoryCoordinator
so that it can trigger V8 GC.
This CL doesn't implement Java part. Follow-up CLs will implement
that part.
[1] https://docs.google.com/document/d/1X2HglPS9zIOWAzmIdp7ghh0AGQsVa__sJbE_wim3RaY/edit#heading=h.xqzy4prx9j3x
BUG=617492
Committed: https://crrev.com/c4b4afcb34459e5f159667f80c385a06cf64b240
Cr-Commit-Position: refs/heads/master@{#413680}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add delegate #Patch Set 3 : override #Patch Set 4 : Rebase & export #Patch Set 5 : export #Messages
Total messages: 35 (23 generated)
|