Closed
Bug 934001
Opened 11 years ago
Closed 11 years ago
ImageView's setImageBitmap is evil
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Tracking
(firefox27 fixed, firefox28 fixed)
RESOLVED
FIXED
Firefox 28
People
(Reporter: sriram, Assigned: sriram)
Details
(Keywords: perf)
Attachments
(1 file)
1.82 KB,
patch
|
mfinkle
:
review+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Calling setImageBitmap(null) creates BitmapDrawables, BitmapDrawable$State, and associated Paint objects. That's so much memory for not showing anything! :O
Comment 2•11 years ago
|
||
Comment on attachment 826153 [details] [diff] [review] Patch We should find a way to get this kind of code change documented so other people remember it. Maybe a simple post to mobile-dev-firefox? Just a short paragraph on why setImageBitmap(null) is not as good as setImageDrawbale(null). I thought there was another issue with setImageBitmap(null)/setImageDrawable(null) too?
Attachment #826153 -
Flags: review?(mark.finkle) → review+
Comment 3•11 years ago
|
||
I also found this tidbit: https://bugzilla.mozilla.org/show_bug.cgi?id=923218#c8
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/04066e075f59
https://hg.mozilla.org/mozilla-central/rev/04066e075f59
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
Comment 7•11 years ago
|
||
Comment on attachment 826153 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Favicon refactor User impact if declined: Memory and jank issues Testing completed (on m-c, etc.): It's been on m-c for a while Risk to taking this patch (and alternatives if risky): low, low risk String or IDL/UUID changes made by this patch: none
Attachment #826153 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Flags: needinfo?(mark.finkle)
Comment 8•11 years ago
|
||
Aurora is 28 as of today. Is this good enough to take for beta?
Comment 9•11 years ago
|
||
Comment on attachment 826153 [details] [diff] [review] Patch IMO, yes. Totally safe one-liner.
Attachment #826153 -
Flags: approval-mozilla-aurora? → approval-mozilla-beta?
Updated•11 years ago
|
Attachment #826153 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 10•11 years ago
|
||
rnewman landed this. https://hg.mozilla.org/releases/mozilla-beta/rev/10ecc8f4258e
status-firefox27:
--- → fixed
status-firefox28:
--- → fixed
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•