Closed
Bug 643793
Opened 14 years ago
Closed 14 years ago
Accelerated layers: portrait mode causes viewport corruption
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: heeen, Unassigned)
Details
Attachments
(2 files, 5 obsolete files)
|
1.75 KB,
patch
|
joe
:
review+
|
Details | Diff | Splinter Review |
|
141.30 KB,
image/png
|
Details |
As far as I know you need to apply some patches to enable accelerated layers in general: bug 628566, bug 607687
After that, enable accelerated layers and view any page in portrait mode.
As a result, the content viewport is:
1) at the wrong position: it should be below the awesomebar, but the awesomebar is overlapped by it, although only the background tiles are visible
2) too short: it is as long as it it wide - it appears there is a mixup of width and height
3) clipped on the right side by the amount the awesomebar is visible from the top - again, it seems like this is a mixup of width and height.
The screenshot was made with the above patches, so the colored lines are texture seam debugging info added by me - disregard them.
| Reporter | ||
Comment 1•14 years ago
|
||
Adding some people that might be interested
| Reporter | ||
Comment 2•14 years ago
|
||
Screenshot without my patches.
Also, this error might be of interest:
###!!! ASSERTION: root view / pres context visible size mismatch: 'bounds.Size() == mPresContext->GetVisibleArea().Size()', file mozilla-central/layout/base/nsPresShell.cpp, line 4936
| Reporter | ||
Comment 3•14 years ago
|
||
I found if you comment out these Scissor calls it looks okay:
http://mxr.mozilla.org/mozilla-central/source/gfx/layers/opengl/ContainerLayerOGL.cpp#285
Comment 4•14 years ago
|
||
so does the cached version get called? Maybe cached should be updated on resize?
| Reporter | ||
Comment 5•14 years ago
|
||
The problem is that clip rects are in layer space, ignoring the world transform of the LayerManager, as set by the Qt mobility orientation code. This patch multiplies the world transform in to fix this.
| Reporter | ||
Comment 6•14 years ago
|
||
Attachment #521488 -
Flags: review?(vladimir)
| Reporter | ||
Updated•14 years ago
|
Attachment #521488 -
Flags: review?(vladimir) → review?(joe)
Comment 7•14 years ago
|
||
Comment on attachment 521488 [details] [diff] [review]
same as above, without hack to ignore tiling imagelayer
r=me provisionally, as long as you add more spaces in-between operators :-), but I wonder if we could automatically apply this on all scissor calls. Matt, what do you think?
Attachment #521488 -
Flags: review?(matt.woodrow+bugzilla)
Attachment #521488 -
Flags: review?(joe)
Attachment #521488 -
Flags: review+
Comment 8•14 years ago
|
||
This patch needs to be updated since the shared scissoring code has landed.
I don't think we can easily abstract this conversion inside of GLContext because of cases like CreateFBOWithTexture where we are clearing the surface without taking the shader transform into account. Transforming this scissor would clear the wrong region.
| Reporter | ||
Comment 9•14 years ago
|
||
Attachment #521482 -
Attachment is obsolete: true
Attachment #521488 -
Attachment is obsolete: true
Attachment #521488 -
Flags: review?(matt.woodrow+bugzilla)
| Reporter | ||
Comment 10•14 years ago
|
||
Comment on attachment 526718 [details] [diff] [review]
rebased
looks like a simple rebase
Attachment #526718 -
Flags: review?(matt.woodrow+bugzilla)
Attachment #526718 -
Flags: review?(joe)
Comment 11•14 years ago
|
||
Comment on attachment 526718 [details] [diff] [review]
rebased
My only request is to insert whitespace between operators and operands, a = b and a * b.
Attachment #526718 -
Flags: review?(joe) → review+
| Reporter | ||
Comment 12•14 years ago
|
||
inserted whitespaces
Attachment #520948 -
Attachment is obsolete: true
Attachment #521136 -
Attachment is obsolete: true
Attachment #526718 -
Attachment is obsolete: true
Attachment #526718 -
Flags: review?(matt.woodrow+bugzilla)
Attachment #530581 -
Flags: review?(joe)
Updated•14 years ago
|
Attachment #530581 -
Flags: review?(joe) → review+
Comment 13•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 14•14 years ago
|
||
Is there a way for us to verify this?
Comment 15•14 years ago
|
||
This is how I see the page on Nightly and Aurora after I set layers.acceleration.disabled=false and layers.acceleration.force-enabled=true, is it ok? can be marked as verified fixed?
Comment 16•14 years ago
|
||
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110905
Firefox/9.0a1 Fennec/9.0a1
Device: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•