Closed Bug 877225 Opened 11 years ago Closed 11 years ago

[MP] Defect - transition from snapped view shows stretched page for a moment

Categories

(Firefox for Metro Graveyard :: Browser, defect, P1)

x86
Windows 8.1
defect

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 26

People

(Reporter: jbecerra, Assigned: bbondy)

References

Details

(Keywords: perf, Whiteboard: [preview] feature=defect c=Browser_views u=metro_firefox_user p=3)

Attachments

(1 file)

Tested on 2013-05-29 using latest nightly.

If you have a page like autoblog.com in snapped view and you snap it back to full view, you will see the page be stretched horizontally for a little while before it renders nicely.

Steps:
1. In Metro Firefox go to autoblog.com and put it in snapped view
2. Pull back the vertical divider to snapp it back to full view

Expected: Faster, smoother transition that doesn't show a stretched page.

Actual: You see the page stretch horizontally for a moment before it looks normal.
Keywords: perf
Priority: -- → P1
Whiteboard: feature=defect c=tbd u=tbd p=0
p=2
Whiteboard: feature=defect c=tbd u=tbd p=0 → feature=defect c=Browser_views u=tbd p=0
Blocks: 831919
Whiteboard: feature=defect c=Browser_views u=tbd p=0 → feature=defect c= u=tbd p=0
Summary: defect - transition from snapped view shows stretched page for a moment → Defect - transition from snapped view shows stretched page for a moment
Whiteboard: feature=defect c= u=tbd p=0 → feature=defect c=firefox_start u=metro_firefox_user p=0
Blocks: 831894
No longer blocks: 831919
Whiteboard: feature=defect c=firefox_start u=metro_firefox_user p=0 → feature=defect c=Browser_views u=metro_firefox_user p=0
Component: General → Browser
Depends on: 831086
'OMTC window resizing doesn't really work' bug 899435 may be related to this.
Whiteboard: feature=defect c=Browser_views u=metro_firefox_user p=0 → feature=defect c=Browser_views u=metro_firefox_user p=0 [preview-triage]
Whiteboard: feature=defect c=Browser_views u=metro_firefox_user p=0 [preview-triage] → [preview-triage] feature=defect c=Browser_views u=metro_firefox_user p=0
Blocks: metrov1backlog
No longer blocks: metrov1defect&change
(In reply to Jim Mathies [:jimm] from comment #2)
> 'OMTC window resizing doesn't really work' bug 899435 may be related to this.

This has landed, can anyone still reproduce?
Summary: Defect - transition from snapped view shows stretched page for a moment → [MP] Defect - transition from snapped view shows stretched page for a moment
Whiteboard: [preview-triage] feature=defect c=Browser_views u=metro_firefox_user p=0 → [preview] feature=defect c=Browser_views u=metro_firefox_user p=0
I tested this on todays m-c and it works for me. I'm concerned the problem Juan reported might a function of slow hardware, which I am not on. Juan, on the original hardware, can you reproduce this?
Flags: needinfo?(jbecerra)
I can reproduce this consistently, it's easiest to see when you start with snapped view and you go to a larger size.
Assignee: nobody → netzen
Blocks: 801187
No longer blocks: metrov1backlog
Status: NEW → ASSIGNED
Blocks: metrov1it15
QA Contact: jbecerra
Whiteboard: [preview] feature=defect c=Browser_views u=metro_firefox_user p=0 → [preview] feature=defect c=Browser_views u=metro_firefox_user p=3
We were originally hoping that bug 899435 would fix this, but the case covered in that bug was not hit here.

On the Swap Chain's ResizeBuffer call, the swap desc was set to scale, this caused a stretching effect to be displayed.
There is also some visual jank that happens because of resizing that is fixed by the flag passed to present.  I think this is because we have 2 buffers in our swap chain for WinRT but not anywhere else.
Attachment #804483 - Flags: review?(bjacob)
Comment on attachment 804483 [details] [diff] [review]
Patch 1 - Do not scale on resize and use current buffer after resize

I am not competent to review this. Try Bas (I think he'll be back from vacation on Monday) or Jeff Gilbert.
Attachment #804483 - Flags: review?(bjacob)
Flags: needinfo?(jbecerra)
Attachment #804483 - Flags: review?(jgilbert)
Comment on attachment 804483 [details] [diff] [review]
Patch 1 - Do not scale on resize and use current buffer after resize

Bas should handle this. I could figure it out, but Bas will have intuition for this part of the code.
Attachment #804483 - Flags: review?(jgilbert) → review?(bas)
Attachment #804483 - Flags: review?(bas) → review+
Thanks for the quick review!
https://hg.mozilla.org/mozilla-central/rev/41104c4a62ee
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Removing bug 831086 because it's not related to this bug.
No longer depends on: 831086
While testing this for iteration #15, with latest Nightly (build ID: 20130926145500), I can't see the page stretch horizontally, before it looks normal.

On the other hand, I do see some visual jank in the upper left corner on the page that lasts for 3-4 seconds, after I put Metro back in full view.

Does anyone have any thoughts/suggestions? Thanks!
Flags: needinfo?(netzen)
You may be seeing bug 918203.  This bug just gets rid of the stretching effect.
Flags: needinfo?(netzen)
> You may be seeing bug 918203.  This bug just gets rid of the stretching
> effect.

Yes, is similar to bug 918203.

Marking this verified, based on comment 13 and comment 14. Thanks Brian!
Status: RESOLVED → VERIFIED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: