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)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: cwiiis, Assigned: cwiiis)
References
Details
Attachments
(1 file)
1.18 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
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 2•11 years ago
|
||
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+
Assignee | ||
Comment 3•11 years ago
|
||
(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
Comment 4•11 years ago
|
||
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.
Description
•