summaryrefslogtreecommitdiffstats
path: root/cc/gl_renderer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/gl_renderer.cc')
-rw-r--r--cc/gl_renderer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
index 51d46f5..908aedf 100644
--- a/cc/gl_renderer.cc
+++ b/cc/gl_renderer.cc
@@ -1075,7 +1075,7 @@ void CCRendererGL::onMemoryAllocationChangedOnImplThread(WebKit::WebGraphicsMemo
// bytes. This will happen when the memory manager thinks that the renderer
// is not visible (which the renderer knows better).
if (allocation.gpuResourceSizeInBytes)
- m_client->setMemoryAllocationLimitBytes(allocation.gpuResourceSizeInBytes);
+ m_client->setManagedMemoryPolicy(ManagedMemoryPolicy(allocation.gpuResourceSizeInBytes));
enforceMemoryPolicy();
}