Closed Bug 960325 Opened 11 years ago Closed 11 years ago

Move Background into Homescreen App

Categories

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

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
1.4 S2 (28feb)

People

(Reporter: mchang, Assigned: mchang)

References

Details

(Keywords: perf, Whiteboard: [c=handeye p=4 s= u=])

Attachments

(6 files, 4 obsolete files)

Move the background image into the homescreen app and out of the system app. This is so we see the background due to some platform optimizations.
Video of bug w/ this patch and bug 917416 to gecko. We see a black screen where the keyboard was for a split second.
Might be related to bug 942750
Still occurs w/o APZ
Depends on: 960736
Priority: -- → P1
Whiteboard: [c=handeye p=3 s= u=] → [c=handeye p=1 s= u=]
Large amount of overpainting if we move the background into the homescreen app.
Blocks: 960683
Summary: Move Background into Homescreen App → Moving Background into Homescreen App Causes Numerous Layers
Whiteboard: [c=handeye p=1 s= u=] → [c=handeye p=4 s= u=]
Interestingly, we don't explode the layer tree until after we pan to another homescreen.
Attached file Analysis of Layer Tree (obsolete) —
We should be able to save 2 layers if we clean up dead thebes layers.
I was able to modify the css and reduce the homescreen overpainting. We still have 1 extra layer that is 1 pixel somewhere. But the changes + the optimizing the parent layer in bug 917416 puts us back to where we started with the original layer tree.
Attachment #8368997 - Attachment is obsolete: true
Summary: Moving Background into Homescreen App Causes Numerous Layers → Move Background into Homescreen App
Hello! We need to move the homescreen background into the homescreen app so we can optimize Gecko in bug 917416. If you could please review, I'd appreciate it. Thanks!
Attachment #8369579 - Flags: review?(alive)
What's the purpose? Does this mean we couldn't have transparent background anymore?
Flags: needinfo?(mchang)
We need to move the homescreen background into the homescreen app because we were always drawing the background even when other apps were painted over it. I don't think we can have a transparent background, but we couldn't before either. If it is in the system app, and the background is transparent, we would see what was behind it, which was just black. The effect would be the same whether the background was in the system app or homescreen app. Does that answer your question? Thanks!
Flags: needinfo?(alive)
Flags: needinfo?(mchang)
Thanks, I know what's the concern here.
Flags: needinfo?(alive)
Comment on attachment 8369579 [details] [review] https://github.com/mozilla-b2g/gaia/pull/15919 I could r+ for this concept but need Christian's feedback on homescreen app part.
Attachment #8369579 - Flags: review?(crdlc)
Attachment #8369579 - Flags: review?(alive)
Attachment #8369579 - Flags: review+
Comment on attachment 8369579 [details] [review] https://github.com/mozilla-b2g/gaia/pull/15919 Hi, I have some important comments from my point of view in Github. When they are addressed/answered please ask me again for a review Thanks a lot
Attachment #8369579 - Flags: review?(crdlc)
Thanks for the feedback. I implemented your comments, please take another look. Thanks.
Attachment #8369579 - Attachment is obsolete: true
Attachment #8372822 - Flags: review?(crdlc)
Attachment #8372822 - Attachment is patch: true
Attachment #8372822 - Attachment mime type: text/x-github-pull-request → text/plain
Comment on attachment 8372822 [details] [diff] [review] https://github.com/mozilla-b2g/gaia/pull/16098 Hi, good job, looks good to me although there are still some details. Basically quick changes :) After addressing them, please ask me again for a review in order to put a R+ Thanks a lot
Attachment #8372822 - Flags: review?(crdlc)
Comment on attachment 8372822 [details] [diff] [review] https://github.com/mozilla-b2g/gaia/pull/16098 Thanks for the feedback. Hopefully the last review!
Attachment #8372822 - Flags: review?(crdlc)
Attachment #8372822 - Flags: review?(crdlc) → review+
Thanks for the review! Carrying r+ over.
Attachment #8360753 - Attachment is obsolete: true
Attachment #8372822 - Attachment is obsolete: true
Attachment #8373235 - Flags: review+
I think we still needs to paint background in system app "only" when the homescreen is not loaded yet. Otherwise if homescreen app is killed by OOM killer and the user returns to homescreen, he will see the 'black' or 'white' background which is very bad. I am going to file a followup bug inside window management to fix this.
Landed gaia master: 7540b00be89b65b180817564dfb4b8a0701179ca
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Backed out on gaia master - 588cfa86532ce38af02182926e4129400232c2e1. See bug 917416.
Resolution: FIXED → WORKSFORME
Target Milestone: 1.3 C2/1.4 S2(17jan) → 1.4 S2 (28feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: