Closed Bug 927254 Opened 11 years ago Closed 11 years ago

Purge the Skia texture cache when there is a memory-pressure event

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, firefox26 wontfix, firefox27 wontfix, firefox28 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
1.3 Sprint 5 - 11/22
blocking-b2g koi+
Tracking Status
firefox26 --- wontfix
firefox27 --- wontfix
firefox28 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: n.nethercote, Assigned: snorp)

References

Details

(Keywords: regression, Whiteboard: [MemShrink:P2])

Attachments

(2 files, 2 obsolete files)

From bug 918978 comment 23: > Another thing we need to do is purge the Skia texture cache entirely when there is a > memory-pressure event. I had a patch for this a while back but I have no idea what I > did with it.
Summary: Poppit abnormally terminates quickly after trying to play the game for a few seconds → Purge the Skia texture cache when there is a memory-pressure event
Attachment #821760 - Flags: review?(gwright) → review+
Basically was busted on all debug builds for the same reason.
I guess that's what I get for committing copy/pasted code at 11pm. Sorry. Repushed with fix: https://hg.mozilla.org/integration/mozilla-inbound/rev/e4cccf4390c6
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
From Bug 936285 Comment 18, this fix needs to uplift to b2g v1.2.
blocking-b2g: --- → koi?
Blocks: 936285
(In reply to Sotaro Ikeda [:sotaro] from comment #8) > From Bug 936285 Comment 18, this fix needs to uplift to b2g v1.2. Okay. Blocks a blocker then.
blocking-b2g: koi? → koi+
Comment on attachment 8334008 [details] [diff] [review] Purge SkiaGL texture cache on memory pressure for b2gv1.2 snorp, can you review the patch? It is just apply attachment 821760 [details] [diff] [review] to b2g v1.2.
Attachment #8334008 - Flags: review?(snorp)
Comment on attachment 8334008 [details] [diff] [review] Purge SkiaGL texture cache on memory pressure for b2gv1.2 Review of attachment 8334008 [details] [diff] [review]: ----------------------------------------------------------------- Were there any changes from the original patch? Looks fine to me.
Attachment #8334008 - Flags: review?(snorp) → review+
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #12) > Comment on attachment 8334008 [details] [diff] [review] > Purge SkiaGL texture cache on memory pressure for b2gv1.2 > > Review of attachment 8334008 [details] [diff] [review]: > ----------------------------------------------------------------- > > Were there any changes from the original patch? Looks fine to me. Thanks. There is no change from the original. Just fix a conflict around the following. Master does not have '#include "nsReadableUtils.h"' line. --------------------------------------- #include "nsILocaleService.h" +#include "nsIObserverService.h" #include "nsReadableUtils.h"
Committable patch. Carry 'snorp review+'.
Attachment #8334008 - Attachment is obsolete: true
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #16) > Backed out for bustage. > https://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/36becb933f78 > > https://tbpl.mozilla.org/php/getParsedLog.php?id=30722263&tree=Mozilla-B2g26- > v1.2 Build failure for Mac OS. It seems need to add header file.
(In reply to Sotaro Ikeda [:sotaro] from comment #17) > > https://tbpl.mozilla.org/php/getParsedLog.php?id=30722263&tree=Mozilla-B2g26- > > v1.2 > > Build failure for Mac OS. It seems need to add header file. Dependent on Comment 17, I did tryserver. But it failed because of error on debug build. 'NS_strcmp(aTopic, "memory-pressure")' part failed because of error. On b2g v1.2, it could not be compiled. https://tbpl.mozilla.org/?tree=Try&rev=6a3a494ed965
Fix build error on b2g v1.2 debug build. Carry "snorp review+".
Attachment #8334034 - Attachment is obsolete: true
Attachment #8335078 - Flags: review+
(In reply to Sotaro Ikeda [:sotaro] from comment #20) > https://tbpl.mozilla.org/?tree=Try&rev=6a3a494ed965 Build becomes OK.
Need to check-in branch b2g v1.2 patch.
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: