Closed Bug 1296657 Opened 8 years ago Closed 8 years ago

imgFrame doesn't care enough about what it's drawing to

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(1 file)

It's better if it does care.
Comment on attachment 8782946 [details] Bug 1296657: Attempt to create an mOptSurface of the correct type for the DT we're drawing to. Seth's been looking at this code lately so might as well have him look too.
Attachment #8782946 - Flags: review?(seth.bugzilla)
Comment on attachment 8782946 [details] Bug 1296657: Attempt to create an mOptSurface of the correct type for the DT we're drawing to. https://reviewboard.mozilla.org/r/72948/#review71248 Seems reasonable. feedback+. I think Seth has been changing this lately so he might know of any additional constraints. If he doesn't get back to you in a reasonable time I can take a closer look.
Attachment #8782946 - Flags: review?(tnikkel)
Flags: needinfo?(seth.bugzilla)
Blocks: 1296658
Timothy, do you think you can review this?
Flags: needinfo?(tnikkel)
Comment on attachment 8782946 [details] Bug 1296657: Attempt to create an mOptSurface of the correct type for the DT we're drawing to. https://reviewboard.mozilla.org/r/72948/#review75658
Attachment #8782946 - Flags: review+
Flags: needinfo?(tnikkel)
Comment on attachment 8782946 [details] Bug 1296657: Attempt to create an mOptSurface of the correct type for the DT we're drawing to. https://reviewboard.mozilla.org/r/72948/#review76768 ::: image/imgFrame.cpp:399 (Diff revision 1) > nsresult > -imgFrame::Optimize() > +imgFrame::Optimize(DrawTarget* aTarget) > { > MOZ_ASSERT(NS_IsMainThread()); > mMonitor.AssertCurrentThreadOwns(); > - MOZ_ASSERT(mLockCount == 1, > + Why this change?
(In reply to Jeff Muizelaar [:jrmuizel] from comment #6) > Comment on attachment 8782946 [details] > Bug 1296657: Attempt to create an mOptSurface of the correct type for the DT > we're drawing to. > > https://reviewboard.mozilla.org/r/72948/#review76768 > > ::: image/imgFrame.cpp:399 > (Diff revision 1) > > nsresult > > -imgFrame::Optimize() > > +imgFrame::Optimize(DrawTarget* aTarget) > > { > > MOZ_ASSERT(NS_IsMainThread()); > > mMonitor.AssertCurrentThreadOwns(); > > - MOZ_ASSERT(mLockCount == 1, > > + > > Why this change? Because we no longer call it in the stage where we are holding the lock.
Pushed by bschouten@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3d378a118900 Attempt to create an mOptSurface of the correct type for the DT we're drawing to. r=tnikkel
Flags: needinfo?(seth.bugzilla)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Attachment #8782946 - Flags: review?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: