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

Unified Diff: android_webview/native/aw_contents.cc

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary code Created 6 years, 8 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
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index eb009e93f993a5e3e72206ab20d58de911af8f47..ac607d8082a831092400e9351dc84e82ae87c7e7 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1051,16 +1051,16 @@ void AwContents::TrimMemoryOnRenderThread(JNIEnv* env,
jboolean visible) {
if (hardware_renderer_) {
if (hardware_renderer_->TrimMemory(level, visible)) {
- content::BrowserThread::PostTask(
- content::BrowserThread::UI,
+ BrowserThread::PostTask(
+ BrowserThread::UI,
FROM_HERE,
- base::Bind(&AwContents::ForceFakeComposite, ui_thread_weak_ptr_));
+ base::Bind(&AwContents::TrimMemory, ui_thread_weak_ptr_));
}
}
}
-void AwContents::ForceFakeComposite() {
- browser_view_renderer_.ForceFakeCompositeSW();
+void AwContents::TrimMemory() {
+ browser_view_renderer_.TrimMemory();
boliu 2014/04/28 22:22:15 This might be out of scope for this patch, but can
hush (inactive) 2014/04/30 20:50:17 I put trim memory into BVR. Haven't thought about
}
void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) {
« android_webview/browser/tile_resource_consumer.h ('K') | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698