Closed Bug 949748 Opened 11 years ago Closed 9 years ago

[META] Modify Gaia apps to save memory by downsampling images while decoding when that feature is available

Categories

(Firefox OS Graveyard :: Gaia, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: djf, Assigned: djf)

References

Details

(Keywords: perf, Whiteboard: [c=memory p= s= u=][MemShrink:P1][priority])

Bug 854795 will hopefully give us a way to downsample images while decoding them so that when we have to deal with images that are larger than a mobile device screen we don't have to take the memory hit that comes with decoding them at full-size.

This will save huge amounts of memory, prevent OOMs, and make our apps more stable and quicker. This is especially true for the Gallery app (which will need a major refactoring).  But other Gaia apps should be modified to take advantage of the new feature, too:

The Music app can use the new API to create album art thumbnails.

The Contacts app can use the new API to resize contact photos.

The SMS app can use the new API to resize photos to be transferred by MMS.

The Wallpaper app can change its share activity handling to use the new feature.

This is a meta bug for keeping track of the various Gaia features that should be updated once 854795 is fixed.
Depends on: 854795
Depends on: 949753
Blocks: 949755
Keywords: perf
Whiteboard: [c=memory p= s= u=]
Blocks: 949761
Blocks: 949757
No longer blocks: 949755, 949757, 949761
Depends on: 949755, 949757, 949761
Depends on: 949770
Depends on: 949771
Depends on: 949773
Depends on: 949776
Depends on: 949779
Depends on: 949781
Depends on: 949786
David, let's talk about a potential approach outlined in bug 951710.  Jeff is the right person on the graphics side.
Whiteboard: [c=memory p= s= u=] → [c=memory p= s= u=][MemShrink]
We'll mark this as MemShrink:P1, and not mark the dependent bugs individually.
Whiteboard: [c=memory p= s= u=][MemShrink] → [c=memory p= s= u=][MemShrink:P1]
We need to consider which of these dependent app bugs we want on tarako.  Nom'ing for 1.3t so that it shows up in the triage.
blocking-b2g: --- → 1.3T?
Blocks: 974716
No longer depends on: 949786
(In reply to Ben Kelly [:bkelly] from comment #3)
> We need to consider which of these dependent app bugs we want on tarako. 
> Nom'ing for 1.3t so that it shows up in the triage.

We might want to just nominate the specific dependencies needed here. We don't typically block on meta bugs.
Don't we just want bug 945161?
blocking-b2g: 1.3T? → ---
Whiteboard: [c=memory p= s= u=][MemShrink:P1] → [c=memory p= s= u=][MemShrink:P1][priority]
OS: Mac OS X → Gonk (Firefox OS)
Priority: -- → P1
Hardware: x86 → ARM
Blocks: 1006039
Summary: Modify Gaia apps to save memory by downsampling images while decoding when that feature is available → [META] Modify Gaia apps to save memory by downsampling images while decoding when that feature is available
Pinch and zoom in gallery is causing OOM issues on v1.4, not sure which dependent bug will fix the issue so noming this metabug for 2.0 since bug 990292 was made duplicate to this one. We should also try to fix it for v1.4 if possible.
blocking-b2g: --- → 2.0?
Hema,

Since we don't block on metas and most of this meta's dependencies are media issues do you plan to mark any of those dependencies as 2.0 blockers?

Bhavana,
Any guidance here?

Mike
Flags: needinfo?(hkoka)
Flags: needinfo?(bbajaj)
(In reply to Mike Lee [:mlee] from comment #8)
> Hema,
> 
> Since we don't block on metas and most of this meta's dependencies are media
> issues do you plan to mark any of those dependencies as 2.0 blockers?
> 
> Bhavana,
> Any guidance here?
> 
> Mike

Not in the plan for 2.0 for other media apps. 

Gallery: Downsampling images when decoding and other OOM fixes on Gallery were implemented for 1.3T and there is a bug tracking the merge of those fixes: https://bugzilla.mozilla.org/show_bug.cgi?id=1002593 (gallery). We plan to uplift it to 1.4 once the patch is r+ and landed on master.

Camera: Downsampling Camera merges to master is tracked here: https://bugzilla.mozilla.org/show_bug.cgi?id=1014955


Thanks
Hema
blocking-b2g: 2.0? → ---
Flags: needinfo?(hkoka)
Clearing the nom as Hema's got this and the dependencies that we care about are blocking 1.4 already.
Flags: needinfo?(bbajaj)
Depends on: 1035082
No longer depends on: 1035082
djf, what's the status here? Is there a next step?
Flags: needinfo?(dflanagan)
Nicholas,

I think we're done here. I need to go through the dependent bugs and close them and close this.

Taking this bug so I remember to do that sometime.
Assignee: nobody → dflanagan
Flags: needinfo?(dflanagan)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.