Bug 622470 - "Decode on draw must be enabled for Mobile Fennec" [r=mark.finkle]
authorOleg Romashin <romaxa@gmail.com>
Thu, 17 Feb 2011 15:09:00 -0500
changeset 67409 fb5c71c576e000ebacb9baf2b9153427d625fe87
parent 67408 422bcd9b709e4fb6fb1e2e15a217548a00ae1e70
child 67410 e884fa11f667ea5dfd06b1965b528c02099313d8
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs622470
Bug 622470 - "Decode on draw must be enabled for Mobile Fennec" [r=mark.finkle]
mobile/app/mobile.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -577,8 +577,14 @@ pref("notification.feature.enabled", tru
 
 // prevent tooltips from showing up
 pref("browser.chrome.toolbar_tips", false);
 pref("indexedDB.feature.enabled", false);
 
 // prevent video elements from preloading too much data
 pref("media.preload.default", 1); // default to preload none
 pref("media.preload.auto", 2);    // preload metadata if preload=auto
+
+// optimize images memory usage
+pref("image.mem.decodeondraw", true);
+pref("content.image.allow_locking", false);
+pref("image.mem.min_discard_timeout_ms", 20000);
+