Closed
Bug 1027380
Opened 10 years ago
Closed 10 years ago
Paint flashing from an inactive layer manager saturates the transparent layers
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: BenWa, Assigned: BenWa)
References
Details
Attachments
(1 file, 2 obsolete files)
7.58 KB,
patch
|
Details | Diff | Splinter Review |
Using paint flashing in some cases where I have a transparent layer that uses an inactive layer manager to draw sometimes yields an overly saturated paint-flash color making the background even more difficult to solve. We shouldn't paint-flash inactive layer manager because the active layer manager will flash it.
Attachment #8442467 -
Flags: review?(matt.woodrow)
Updated•10 years ago
|
Attachment #8442467 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Backout:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f57cf85fd128
Didn't know we had tests for this. Nice :D
Assignee | ||
Comment 3•10 years ago
|
||
CC'ing mstange since matt thinks you might of tried to land something like this before.
Assignee | ||
Comment 4•10 years ago
|
||
This gives us paint flashing for offscreen rendering, which the failing test require.
Or maybe we should just remove that test. Up to you.
Assignee: nobody → bgirard
Attachment #8442467 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8442944 -
Flags: review?(matt.woodrow)
Comment 5•10 years ago
|
||
Your patch looks much better than mine in bug 1009680 and it won't cause the test failure that I encountered.
Comment 6•10 years ago
|
||
Oh, I see now that that was exactly the intention.
Assignee | ||
Comment 7•10 years ago
|
||
Right, we both had the same v1.
Updated•10 years ago
|
Attachment #8442944 -
Flags: review?(matt.woodrow) → review+
Comment 8•10 years ago
|
||
- if (presContext->GetPaintFlashing()) {
+ if (presContext->GetPaintFlashing() &&
+ !aLayer->Manager()->IsInactiveLayerManager()) {
^^ wrong indent
(In reply to Benoit Girard (:BenWa) (Off until June 30th) from comment #4)
> Or maybe we should just remove that test. Up to you.
We could also create a reftest instead. For example we could copy layout/reftests/reftest-sanity/invalidation.html and use it with
pref(nglayout.debug.paint_flashing,true) != invalidation.html about:blank
Since reftests should always be using widget layers, this should work with the v1 patch. We can also make it conditional on layersGPUAccelerated if it doesn't.
Assignee | ||
Comment 10•10 years ago
|
||
Opps. I though I had landed that.
Yes we could create a new better test for it. We need to be careful how we compare because if we only paint flash for thebes layer and about:blank can use a color layer.
Assignee | ||
Comment 11•10 years ago
|
||
Attachment #8442944 -
Attachment is obsolete: true
Assignee | ||
Comment 12•10 years ago
|
||
ttps://hg.mozilla.org/integration/mozilla-inbound/rev/24b61c6aad57
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•