Closed Bug 994548 Opened 11 years ago Closed 11 years ago

Layer masks are drawn incorrectly when doing partial updates in BasicCompositor

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

Attachments

(1 file)

If a partial update is done, the altered size and offset of the target seem to affect layer masks (they get offset and squished accordingly) - I suspect this may be down to transform code in BasicCompositor.cpp.
Another embarrassingly long time to find something so simple. Still, nice that it's this and not something more heinous :)
Assignee: nobody → chrislord.net
Status: NEW → ASSIGNED
Attachment #8404673 - Flags: review?(matt.woodrow)
Comment on attachment 8404673 [details] [diff] [review] BasicCompositor - fix masks when there's an offset on the render target Review of attachment 8404673 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/basic/BasicCompositor.cpp @@ +311,5 @@ > MOZ_ASSERT(effectMask->mMaskTransform.Is2D(), "How did we end up with a 3D transform here?!"); > MOZ_ASSERT(!effectMask->mIs3D); > maskTransform = effectMask->mMaskTransform.As2D(); > } > + maskTransform.Translate(-offset.x, -offset.y); Shouldn't this go inside the if() condition scope?
Attachment #8404673 - Flags: review?(matt.woodrow) → review+
(In reply to Matt Woodrow (:mattwoodrow) from comment #2) > ::: gfx/layers/basic/BasicCompositor.cpp > @@ +311,5 @@ > > MOZ_ASSERT(effectMask->mMaskTransform.Is2D(), "How did we end up with a 3D transform here?!"); > > MOZ_ASSERT(!effectMask->mIs3D); > > maskTransform = effectMask->mMaskTransform.As2D(); > > } > > + maskTransform.Translate(-offset.x, -offset.y); > > Shouldn't this go inside the if() condition scope? Corrected and pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/8930603310a7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: