summaryrefslogtreecommitdiffstats
path: root/android_webview/lib
diff options
context:
space:
mode:
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-10 22:44:43 +0000
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-10 22:44:43 +0000
commit0552c8ef896c4356f4db85618972dedccd6ad53b (patch)
treed00992f235af190d2bdb9de0a5f72fbfcc1c9917 /android_webview/lib
parent1e7258d60d7ebdb30a27552d900e885922119a2c (diff)
downloadchromium_src-0552c8ef896c4356f4db85618972dedccd6ad53b.zip
chromium_src-0552c8ef896c4356f4db85618972dedccd6ad53b.tar.gz
chromium_src-0552c8ef896c4356f4db85618972dedccd6ad53b.tar.bz2
[Android WebView] First cut memory management
Based on simple algorithm of visible rect x constant. Completely disregards the preferred allocation from based on content of the page. Constants extermined experimentally using current android nexus devices. BUG=286026 Review URL: https://chromiumcodereview.appspot.com/23572023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/lib')
-rw-r--r--android_webview/lib/main/aw_main_delegate.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index ff7dfbf..10906c7 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -6,6 +6,7 @@
#include "android_webview/browser/aw_content_browser_client.h"
#include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
+#include "android_webview/browser/in_process_view_renderer.h"
#include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
#include "android_webview/lib/aw_browser_dependency_factory_impl.h"
#include "android_webview/native/aw_geolocation_permission_context.h"
@@ -50,6 +51,8 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
gpu_memory_buffer_factory_.get());
gpu::InProcessCommandBuffer::EnableVirtualizedContext();
+ InProcessViewRenderer::CalculateTileMemoryPolicy();
+
CommandLine* cl = CommandLine::ForCurrentProcess();
cl->AppendSwitch(switches::kEnableBeginFrameScheduling);
cl->AppendSwitch(cc::switches::kEnableMapImage);