Adding call to free unused memory from PartitionAlloc in IdleHandler.
PartitionAlloc does not decommit pages which are free, since it can be
used later (without allocating again) for better performance. this
could consume a lot of memory sometimes. This CL adds a call to free
the unused memory at IdleHandler.
BUG=495171
Review URL: https://codereview.chromium.org/1169853004
Cr-Commit-Position: refs/heads/master@{#333508}
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 0c8ee8f..b00b80b1 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -469,6 +469,8 @@
void OnRendererHidden();
void OnRendererVisible();
+ void ReleaseFreeMemory();
+
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
// These objects live solely on the render thread.