Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2546)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 397193002: Set ImageCacheSingleAllocationByteLimit to 64MB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 2666e22569efc3bcd3e2734e6b0c86c57610e0ac..fe4032d44c1bb2254c64a8d8cbe08154d809bb4b 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -904,6 +904,7 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
memory_observer_.reset(new MemoryObserver());
message_loop()->AddTaskObserver(memory_observer_.get());
}
+ SkGraphics::SetImageCacheSingleAllocationByteLimit(64 * 1024 * 1024);
reveman 2014/07/17 15:33:21 Can you move "64 * 1024 * 1024" to a constant defi
reveman 2014/07/17 15:36:06 nit: move this call up next to the other SkGraphic
hal.canary 2014/07/17 16:55:06 Done.
hal.canary 2014/07/17 16:55:07 Done.
}
void RenderThreadImpl::RegisterSchemes() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698