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

Unified Diff: android_webview/browser/browser_view_renderer.cc

Issue 545663002: Cleanups in GlobalTileManager and BrowserViewRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just cleanups Created 6 years, 3 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 | android_webview/browser/global_tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.cc
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index d9d3d0b1e18ab06b1eafcec9a9d45d6fd66dc6a8..6260258dba71227fc0a4a1289a9c25642bad3a56 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -151,8 +151,7 @@ BrowserViewRenderer::~BrowserViewRenderer() {
// policy should have already been updated.
}
-// This function updates the cached memory policy in shared renderer state, as
-// well as the tile resource allocation in GlobalTileManager.
+// This function updates the resource allocation in GlobalTileManager.
void BrowserViewRenderer::TrimMemory(const int level, const bool visible) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Constants from Android ComponentCallbacks2.
@@ -220,8 +219,6 @@ void BrowserViewRenderer::RequestMemoryPolicy(
void BrowserViewRenderer::SetNumTiles(size_t num_tiles,
bool effective_immediately) {
- if (num_tiles == num_tiles_)
- return;
num_tiles_ = num_tiles;
memory_policy_.num_resources_limit = num_tiles_;
« no previous file with comments | « no previous file | android_webview/browser/global_tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698