Closed Bug 946999 Opened 11 years ago Closed 11 years ago

[Homescreen] With APZ turned on the homescreen is not rendered until you touch the screen in certain conditions

Categories

(Core :: Panning and Zooming, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29
blocking-b2g 1.3+
Tracking Status
firefox27 --- wontfix
firefox28 --- fixed
firefox29 --- fixed
b2g-v1.3 --- fixed

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file, 1 obsolete file)

With APZ turned on, when I use the device with the lockscreen disabled (via Settings -> Lock -> Lockscreen) and when the device starts the homescreen does not repaint until a finger is touching the screen. I think I'm seeing a similar issue with the call screen once it has been minimized with the home button and then when it is reopened by either clicking on it or hitting the home button.
Milan, can we fix this one before turning the pref on? It looks very bad on the device, mostly concerned about the call screen.
Flags: needinfo?(milan)
Assignee: nobody → bgirard
Blocks: 942746
Flags: needinfo?(milan)
First issue is that we don't check the viewport height at: http://mxr.mozilla.org/mozilla-central/source/gfx/layers/ipc/AsyncPanZoomController.cpp#1455 Second issue seems to be that we are over zealous to ignore paint request in http://mxr.mozilla.org/mozilla-central/source/gfx/layers/ipc/AsyncPanZoomController.cpp#1246 Digging into it to understand why.
Attached patch bug948396.patch (obsolete) — Splinter Review
Let's be less zealous and more open to viewport changes.
Attachment #8345296 - Flags: review?(bugmail.mozilla)
Attached patch bug946999.patchSplinter Review
Let's see if this one is correct!
Attachment #8345296 - Attachment is obsolete: true
Attachment #8345296 - Flags: review?(bugmail.mozilla)
Attachment #8345328 - Flags: review?(bugmail.mozilla)
Comment on attachment 8345328 [details] [diff] [review] bug946999.patch Review of attachment 8345328 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the comments addressed ::: gfx/layers/ipc/AsyncPanZoomController.cpp @@ +1273,5 @@ > fabsf(mLastPaintRequestMetrics.mScrollOffset.y - > mFrameMetrics.mScrollOffset.y) < EPSILON && > + mFrameMetrics.mZoom == mLastPaintRequestMetrics.mZoom && > + mFrameMetrics.mViewport.width == mLastPaintRequestMetrics.mViewport.width && > + mFrameMetrics.mViewport.height == mLastPaintRequestMetrics.mViewport.height) { mViewport has floats, so you should do the fabsf(..) < EPSILON comparison @@ +1474,1 @@ > needContentRepaint = true; Add braces here since you're touching the code anyway
Attachment #8345328 - Flags: review?(bugmail.mozilla) → review+
Hey Milan, did you really wanted to mark this bug blocking/depend on 942746 - that was a update for shockwave :)
I spent time on this thinking there was a missed UpdateDimensions call but I found that this is actually a Gaia 1.3 regression (bug 949044)
Assignee: bgirard → 21
Status: NEW → ASSIGNED
blocking-b2g: --- → 1.3+
Target Milestone: --- → mozilla28
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: mozilla28 → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: