Bug 802777 - Decrease image.mem.max_decoded_image_kb on B2G. r=joedrew
authorJustin Lebar <justin.lebar@gmail.com>
Wed, 17 Oct 2012 16:18:33 -0400
changeset 110717 bd5e49f6d2fa534fdc1aeb8eb778563a0cae3c95
parent 110716 d896a7f47e02184fa2693ad72641608bad716767
child 110718 6d06541f4b2705f133acb2e60ef3e7e922c3883c
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersjoedrew
bugs802777
milestone19.0a1
Bug 802777 - Decrease image.mem.max_decoded_image_kb on B2G. r=joedrew
b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -261,20 +261,21 @@ pref("media.cache_size", 4096);    // 4M
 pref("media.video-queue.default-size", 3);
 
 //  0: don't show fullscreen keyboard
 //  1: always show fullscreen keyboard
 // -1: show fullscreen keyboard based on threshold pref
 pref("widget.ime.android.landscape_fullscreen", -1);
 pref("widget.ime.android.fullscreen_threshold", 250); // in hundreths of inches
 
-// optimize images memory usage
+// optimize images' memory usage
 pref("image.mem.decodeondraw", true);
 pref("content.image.allow_locking", false);
 pref("image.mem.min_discard_timeout_ms", 10000);
+pref("image.mem.max_decoded_image_kb", 5120); /* 5MB */
 
 // enable touch events interfaces
 pref("dom.w3c_touch_events.enabled", true);
 pref("dom.w3c_touch_events.safetyX", 0); // escape borders in units of 1/240"
 pref("dom.w3c_touch_events.safetyY", 120); // escape borders in units of 1/240"
 
 #ifdef MOZ_SAFE_BROWSING
 // Safe browsing does nothing unless this pref is set